1
0
mirror of https://github.com/pkimpel/retro-b5500.git synced 2026-02-11 19:05:01 +00:00

Bash script to extract words from files with a count

This commit is contained in:
nw@retrocomputingtasmania.com
2012-03-06 09:40:22 +00:00
parent a87746341c
commit 985ae88d86

7
tools/uniquewordcount Executable file
View File

@@ -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