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:
7
tools/uniquewordcount
Executable file
7
tools/uniquewordcount
Executable 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
|
||||
Reference in New Issue
Block a user