Jump to content

Command Crate ¿about?

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

file management [kb:203]