Count the number of lines in the file ‘text1’. code example Example: count number of lines in directory linux find . -name '*.php' | xargs wc -l