etc

small bits of code not worth their own repo
git clone git://git.benoneill.xyz/etc
Log | Files | Refs | README | LICENSE

commit 364fc88603a9076a7920ccbc77655c6bb4a8f60a
parent 40c7b19f4e6261423e6e257421cc1579fa057811
Author: Ben O'Neill <ben@benoneill.xyz>
Date:   Thu, 23 Sep 2021 09:33:31 -0400

fix for when spaces are not most common token

Diffstat:
Mworduse.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/worduse.sh b/worduse.sh @@ -2,4 +2,4 @@ # worduse: calculate word frequency from standard input # usage: worduse -tr -cd "[:alpha:] \n" | tr '[:upper:] ' '[:lower:]\n' | sort | uniq -c | sort -n | sed '$d' +tr -cd "[:alpha:] \n" | tr '[:upper:] ' '[:lower:]\n' | sort | uniq -c | sed 1d | sort -n