Search Results

Search: Posts Made By: pcbuilder
5,381
Posted By Corona688
for a file: wc -l filename I'm...
for a file:

wc -l filename

I'm presuming by "a directory" you mean "sum of lines for all files in a directory". If you don't want to include subdirectories:

cat dir/* | wc -l If you do:...
3,014
Posted By Corona688
( cat /etc/fstab ; find /etc -type f ) >...
( cat /etc/fstab ; find /etc -type f ) > dir1/listofstuff
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy