... and pieces

Recursively Count the Number of Lines in a File

find . -type f -name '*.' -exec wc -l {} \; | awk '{sum+=$1} END {print sum}'