Created
July 20, 2012 17:07
-
-
Save xavivars/3151926 to your computer and use it in GitHub Desktop.
This script tries to extrat all unkown words (marked with "*") from a text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -e "s/[^[:alnum:]\\*]/ /g" -e "s/[[:blank:]]+/ /g" | tr " " "\\n" | sed -e "/^$/d" | grep "\*" | sort | uniq -c | sort -r -n | sed -e "s/\*//g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment