Here is my shell script version:

for word in `cat [the file]`; do grep $word /usr/share/dict/words >
/dev/null && echo $word; done | awk -F ' ' '{ words[$1]++} END { for (
word in words ) { print words[word] " " word; }}' | sort -n

It's probably not the fastest... but I posted a solution first :)

-Dennis

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to