1
0
mirror of https://github.com/pkimpel/retro-b5500.git synced 2026-02-13 11:44:33 +00:00
Files
pkimpel.retro-b5500/tools/uniquewordcount
2012-03-06 09:40:22 +00:00

8 lines
250 B
Bash
Executable File

#!/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