linux show count lines 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
$ somecommand | wc -l
find . -name '*.php' | xargs wc -l