![]() |
Shell scripting assistance
Hey, looking for a little help with a linux shell script I am writing since I am not very good at it.
I need to count the number of lines in the files of a specified directory and return the ONLY the file with the most lines. I can accomplish the first task with 'wc -l *|sort -rn' that will return the line count of all the files in the working directory and order them from highest to lowest. What I cannot figure out is how to only return the file with the most lines and exclude all the others. |
All times are GMT. The time now is 03:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|