Created
July 1, 2012 22:17
-
-
Save peregrinogris/3029839 to your computer and use it in GitHub Desktop.
A script to count the js lines a set of folders contain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for folder in `ls -1d */` | |
do | |
files=`find $folder -type f -name "*.js" -exec cat {} \; | wc -l` | |
echo "$files - $folder"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment