16
Jun
0
Bash-Linux Counting lines of files in subdirectories
Because it took me 5 minutes to make the right command (do we use a pipe or not, do we put \ at the end or not, etc….), I write it here (for me like a post-it):
find . -type f -exec wc -l {} +
So this command will take every files in all directories (current and sub dir) and count the lines.
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
Subscribe to the RSS feed and have all new posts delivered straight to you.
