Utility to count the instances of a string in files in the current folder (searches recursively)
Currently case-insensitive
- Compile, package into jar
- java -jar WordCount.jar [--print_files] search term goes here. don't need quotes
- Add options for case-sensitivity
Fun fact: This was originally created to count the number of swears in the Linux kernel source!
(Results taken from the copy I had downloaded, i.e. this)
"fuck": 29
“wtf”: 245
“shit”: 170
“hell”: 9797