Created
September 30, 2009 18:27
-
-
Save chrismetcalf/198320 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # One-liner to see who uses the Seven Dirty Words the most in their code | |
| # http://en.wikipedia.org/wiki/Seven_dirty_words | |
| find . | grep -v ".git" | while read filename; do git blame $filename 2> /dev/null | \ | |
| egrep -i '(shit|piss|fuck|cunt|cocksucker|motherfucker|tits)' | \ | |
| perl -ne 'm|\w+\s+\(([\w.-_@ ]+) 200|; print "$1\n";'; done | sort | uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment