Monday, August 24, 2009

Count number of lines in a text file

wc -l file_name

1 comment:

Mohammed Hewedy said...

Thanks too much.

also from man page:
wc -w print the word counts
wc -m print the character counts
wc -c print the byte counts