Tally ho!

By Filip Salomonsson; published on May 21, 2007. Tags: linux

I don't know how many keystrokes of my life has been wasted typing sort | uniq -c | sort -nr, but I can tell you it's a lot. Well, no more, as I just stuffed this little puppy into my ~/bin and named it tally:

#!/bin/sh
exec sort | uniq -c | sort -nr

Now I can pipe my hero searches to tally, saving over twenty keystrokes every time, which I will instead collect in a glass jar and serve as treats whenever I have dinner guests. Perhaps with chocolate.

I'm still working on perfecting the accompanying "ho" script.