Search This Blog

Wednesday, February 4, 2009

Frequency of a word in a file

cat file | tr -sc A-Za-z '\012' | sort | uniq -c | sort -n

No comments:

Post a Comment