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
|
---|
In Section
Seekers of Perl Wisdom