Yeah you could do that, but you still have to do extra processing if you want anything useful.<div><br></div><div><div class="gmail_quote">On Sat, Dec 15, 2012 at 4:58 AM, Matt Keys <span dir="ltr"><<a href="mailto:mk6032@yahoo.com" target="_blank">mk6032@yahoo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
cat infile | tr -cs "[:alnum:]" "\n" | sort | uniq -c | sort -rn<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On 12/14/2012 06:04 PM, Dan Lyke wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Someone made a comment about word clouds on Facebook yesterday, and<br>
being the smartass that I am I couldn't resist:<br>
<br>
perl -e 'while (<>) { $c{$_}++ for (split /\W+/); } print map {$_ ?<br>
"$_ => $c{$_}\n" : ""} (sort { $c{$b} <=> $c{$a} } keys %c)'<br>
<br>
Takes text as STDIN, Outputs "word => occurrences", one per line, in<br>
descending occurrences order.<br>
______________________________<u></u>_________________<br>
Chugalug mailing list<br>
<a href="mailto:Chugalug@chugalug.org" target="_blank">Chugalug@chugalug.org</a><br>
<a href="http://chugalug.org/cgi-bin/mailman/listinfo/chugalug" target="_blank">http://chugalug.org/cgi-bin/<u></u>mailman/listinfo/chugalug</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Chugalug mailing list<br>
<a href="mailto:Chugalug@chugalug.org" target="_blank">Chugalug@chugalug.org</a><br>
<a href="http://chugalug.org/cgi-bin/mailman/listinfo/chugalug" target="_blank">http://chugalug.org/cgi-bin/<u></u>mailman/listinfo/chugalug</a><br>
</div></div></blockquote></div><br></div>