Hi,
 
I have a script which greps for a word in a file contains records..
I grabbed a particular column & sent the colomn values to a file.
I need to find each column value, the times it appeared in the file.
My script is: 
                 grep sceneority <file> | cut -f 6 >> swi
I am stuck at how to find the occurance of column values in "swi" file.
Plz help me.
Ex:
 
The file has following column values:
 
123
324
123
123
435
435
 
The output should be 
 
123 is 3 times
324 is 1 time
435 is 2 times
 
Thanks & Regards,
Pradeep.


      Bollywood, fun, friendship, sports and more. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/

Reply via email to