sort file | uniq -c | sort -n
will print out something like:
1 foo 3 bar 8 blah
In reply to Re: Reporting entries in a file (unix one-liner)
by toolic
in thread Reporting entries in a file
by SkullOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |