how to get number of rows in a file linux code example Example: count lines in files find . -name '*.php' | xargs wc -l