diff --git a/tools/uniquewordcount b/tools/uniquewordcount new file mode 100755 index 0000000..ff447f6 --- /dev/null +++ b/tools/uniquewordcount @@ -0,0 +1,7 @@ +#!/bin/bash +# +# list words in a file with a uniqness count to identify typing mistakes. +# Usage: ./uniquewordcount MyFile | more +# ./uniquewordcount < MyFile > UniqueWordsWithCount +# +(echo "$1"; cat) | tr -cs "[:alpha:]" "\n" | sort | uniq -c