Count lines in .txt files (find, wc)
find . -type f -name "*.txt" -exec wc -l {} +
Finds all .txt files and counts the number of lines in each using wc -l
find . -type f -name "*.txt" -exec wc -l {} +
Finds all .txt files and counts the number of lines in each using wc -l