Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted by wordfreq.awk ( 13 years ago )
#!/usr/bin/awk -f
{
$0 = tolower($0) # remove case distinctions
# remove punctuation
gsub(/[^[:alnum:]_[:blank:]]/, " ", $0)
for (i = 1; i <= NF; i++)
freq[$i]++
}
END {
sort = "sort -nr"
for (word in freq)
printf "%d\t%s\n", freq[word], word | sort
close(sort)
}
Revise this Paste