read how many lines a file has code example Example: count lines in files find . -name '*.php' | xargs wc -l