Skip to content

Instantly share code, notes, and snippets.

@xavivars
Created July 20, 2012 17:07
Show Gist options
  • Save xavivars/3151926 to your computer and use it in GitHub Desktop.
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
#!/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