how to get a count of all the new line strings in linux code example Example: count number of lines in directory linux find . -name '*.php' | xargs wc -l