Skip to content

Instantly share code, notes, and snippets.

@xaitax
Created January 29, 2014 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaitax/8689191 to your computer and use it in GitHub Desktop.
Save xaitax/8689191 to your computer and use it in GitHub Desktop.
Amount of swear words in current stable/longterm Linux kernels? Here you go! :)
xaitax@w00t:~/usr/src$ for i in $(ls -d */); do egrep -iro '(fuck|shit|crap|bastard)' ${i%%/} | wc -l | xargs echo "Total matches in ${i%%/}:"; done
Total matches in linux-2.6.32.61: 398
Total matches in linux-2.6.34.14: 454
Total matches in linux-3.10.28: 392
Total matches in linux-3.11.10: 404
Total matches in linux-3.12.9: 404
Total matches in linux-3.13.1: 418
Total matches in linux-3.2.54: 388
Total matches in linux-3.4.78: 381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment