Usage: wc [OPTION]... [FILE]...
-c, --bytes, --chars print the byte counts
-l, --lines print the newline counts
-L, --max-line-length print the length of the longest line
-w, --words print the word counts
--help display this help and exit
--version output version information and exit
Here are a few examples:
1. Count the number of py files in the current directory:
find . -name "*.py" |wc -l
2. Count the number of lines in all py files in the current directory:
find . -name "*.py" |xargs cat|wc -l
3. Count the number of lines in all py files in the current directory, and filter blank lines:
find . -name "*.py" |xargs cat|grep -v ^$|wc -l