Skip to content

Instantly share code, notes, and snippets.

@peregrinogris
Created July 1, 2012 22:17
Show Gist options
  • Save peregrinogris/3029839 to your computer and use it in GitHub Desktop.
Save peregrinogris/3029839 to your computer and use it in GitHub Desktop.
A script to count the js lines a set of folders contain
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