find number of lines linux code example
Example 1: shell count number of lines
$ wc -l < /dir/file.txt
3272485
Example 2: linux command to get number of lines in a file
wc -l <filename>
# output = <number of lines> <filename>
# to omit the file name in output
wc -l < <filename>
# output = <number of lines>