Advertisement
1,932
pages
How to count the total number of lines in multiple files using a bash script
Advertisement
You can use find and awk]] to conting the total number of lines in mutible files
Using the usual GNU tools, you can write the following script (replace "*.java" with your language file type):
find . -name "*.java" -exec wc -l '{}' \; | awk '{ sum += $1 } END { print sum }'