I just found this great little “Code Bloat” script on Ward Cunningham's Smallest Federated Wiki website:
wc -l `find . | perl -ne 'next if /jquery/; print if /\.(rb|haml|coffee)$/'`
If you’re familiar with those Linux commands (
find) and Perl, you can tell that the intent of the command is to find the number of lines of source code per file, for all files beneath the current subdirectory.
There’s just one person behind this website; if this article was helpful (or interesting), I’d appreciate it if you’d share it. Thanks, Al.