[TUHS] Discuss of style and design of computer programs from a user stand point

Warner Losh imp at bsdimp.com
Sun May 7 11:15:43 AEST 2017


On Sat, May 6, 2017 at 1:50 PM, Bakul Shah <bakul at bitblocks.com> wrote:
> tr -cs A-Za-z '\n' | tr A-Z a-z | sort | uniq -c | sort -rn | sed ${1}q

The cool thing about this thread is that I learned two things: what tr
-s does, and the Nq does for sed...

Sadly, this doesn't work so well for text that isn't ASCII-7 english...

Warner



More information about the TUHS mailing list