Tally ho!
Too many keystrokes lost to sort | uniq -c | sort -nr — so now it lives in ~/bin as tally, two lines, twenty keystrokes saved. Still working on the "ho" script.
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.