[Chugalug] tag cloud a mailing list

Dan Lyke danlyke at flutterby.com
Fri Dec 14 23:04:41 UTC 2012

Someone made a comment about word clouds on Facebook yesterday, and
being the smartass that I am I couldn't resist:

perl -e 'while (<>) { $c{$_}++ for (split /\W+/); } print map {$_ ?
"$_ => $c{$_}\n" : ""} (sort { $c{$b} <=> $c{$a} } keys %c)'

Takes text as STDIN, Outputs "word => occurrences", one per line, in
descending occurrences order.

More information about the Chugalug mailing list