line count - TechRepublic
General discussion
September 8, 2003 at 12:24 PM
rgooding

line count

by rgooding . Updated 22 years, 8 months ago

e.g. wc -l filename
gives: 2000 filename

This gives the # of lines and also shows the filename.

I want to extract the # of lines only (2000) and not show the filename. I want to try to do this in one line and not have temporary lines.

Thanks

This discussion is locked

All Comments