Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Changhao Jiang
October 14, 2004, 8:26 pm
rate this thread
find out the number of occurrences for each unique value in a data file.
For example, if I use "sort -u -n", it will list all the unique values
in order. But there is no information about how many instances for each
unique value. I know this should be trial to implement in perl with hash
table. But since it is so useful, there might be a shell command with
appropriate switch to do the same thing. Any thoughts are appreciated.