etc

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

commit 40c7b19f4e6261423e6e257421cc1579fa057811
parent 542a1c2d17cb7de69cf3cc56b34e5cd9acfd78ce
Author: Ben O'Neill <ben@benoneill.xyz>
Date:   Thu, 23 Sep 2021 09:28:53 -0400

simplify worduse somewhat

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 -sed 's/--/ /' | tr -cd '[:alpha:] \n' | tr '[:upper:]' '[:lower:]' | awk -v OFS='\n' '{$1=$1}1' | tr -d ' \t' | sort | uniq -c | sort -n +tr -cd "[:alpha:] \n" | tr '[:upper:] ' '[:lower:]\n' | sort | uniq -c | sort -n | sed '$d'