From mboxrd@z Thu Jan 1 00:00:00 1970 From: imp@bsdimp.com (Warner Losh) Date: Sat, 6 May 2017 19:15:43 -0600 Subject: [TUHS] Discuss of style and design of computer programs from a user stand point In-Reply-To: <20170506195049.8FBEA124AEA4@mail.bitblocks.com> References: <201705060202.v4622L1J013430@coolidge.cs.Dartmouth.EDU> <5a2d6cc957c2efcd968f35aa5557c7a0e309dd27@webmail.yaccman.com> <20170506091857.GE12539@yeono.kjorling.se> <20170506144011.GF28787@mcvoy.com> <20170506195049.8FBEA124AEA4@mail.bitblocks.com> Message-ID: On Sat, May 6, 2017 at 1:50 PM, Bakul Shah 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