[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

matrix uniq



Hi all,

I want to "uniq" by comparing the specified column for matrix data.
I want to realize this operation by command line programs ,
not any script file.

For example , if the following data is operated by first column uniq,
-------------------------
1 eagle 197
1 bird 387
2 camera 91
2 dog 62
3 apple 89
-------------------------

the output will be

-------------------------
1 eagle 197
2 camera 91
3 apple 89
-------------------------

Such a editing is easy in perl script but I cannot easily do that
in command line. 

Is there any idea?


-- 
Youichi Mano <manoyouichi@hotmail.com>




Reply to: