how to get line count of a file in linux code example
Example 1: shell count number of lines
$ wc -l < /dir/file.txt
3272485
Example 2: find how many lines in a file linux
wc -l <filename>
$ wc -l < /dir/file.txt
3272485
wc -l <filename>