linux count lines of output code example
Example 1: shell count lines output
$ somecommand | wc -l
Example 2: count number of lines in directory linux
find . -name '*.php' | xargs wc -l
Example 3: lines count linux
wc -l <filename>
$ somecommand | wc -l
find . -name '*.php' | xargs wc -l
wc -l <filename>