Monday, November 19, 2012

No. of lines in file Linux

Following command can be used to count number of lines in the file using Linux command.

cat fileName | wc -l

wc -l is used to count & list down number.