how to count a character in a file using cli code example Example: count number of lines in directory linux find . -name '*.php' | xargs wc -l