I presume this breaks the rules, but have reached for the sort | uniq
-c pistol too often!
perl -nle 'print `echo $_ | tr "/ /", "\n" | sort | uniq -c`'
On 20/04/07, Joel Bernstein <joel at fysh.org> wrote:
> perl -nle 'map{$X{$_}++}split/\s+/}{print"$_:$X{$_}"for sort keys%X'
>