"there should be a pinhook command for every three letter word"

~ lateen

So lateen said we should have a pinhook command (I think he meant "our command") for every three letter word. I decided to find out what that would take.

First, I had to get a list of every three-letter word. Easy: $ grep ^...$ /usr/share/dict/words | grep -v "'" > 3word.txt

Then, I got a list of every three-letter our command. Also easy: $ ls /town/our | grep ^...$ > 3our.txt

At this point it got a little harder. I had to find all the words in 3word.txt that aren't in 3our.txt. I tried some stuff with diff, but ultimately went with a while loop: $ cat 3word.txt | while read word; do grep -q "$word" 3our.txt || echo "$word"; done > onlyword.txt

I decided to do the other way too, for fun. $ cat 3our.txt | while read word; do grep -q "$word" 3word.txt || echo "$word"; done > onlyour.txt

Finally, I pasted those two files together: $ paste onlyour.txt onlyword.txt > unified.txt

Running a quick $ wc -l < unified.txt gives us 1110 three-letter commands to go. So let's get on it!