count lines in all files in a directory linux code example
Example 1: count number of lines in directory linux
find . -name '*.php' | xargs wc -l
Example 2: find how many lines in a file linux
wc -l <filename>
find . -name '*.php' | xargs wc -l
wc -l <filename>