http://qs321.pair.com?node_id=741482


in reply to How do I count the frequency of words in a file and save them for later?

The standard UNIX tool chain works fine:

perl -nle "print for /(\w['\w-]*)/g" input.text | sort | uniq -c | sor +t -rn | tee word-list.text
  • Comment on Re: How do I count the frequency of words in a file and save them for later?
  • Download Code