Skip to content

Instantly share code, notes, and snippets.

@chrismetcalf
Created September 30, 2009 18:27
Show Gist options
  • Save chrismetcalf/198320 to your computer and use it in GitHub Desktop.
Save chrismetcalf/198320 to your computer and use it in GitHub Desktop.
# 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