count line linux code example
Example 1: shell count number of lines
$ wc -l < /dir/file.txt
3272485
Example 2: count lines in files
find . -name '*.php' | xargs wc -l
Example 3: lines count linux
wc -l <filename>
$ wc -l < /dir/file.txt
3272485
find . -name '*.php' | xargs wc -l
wc -l <filename>