Reputation: 6041
I want to find out the total number of lines of code for a given directory (include sub-directory), for example, search for all *.php files and sum up each one using wc -l
How can I combine commands (using pipe) and achieve this on BASH shell? Simpler the better.
Upvotes: 2
Views: 94