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

Re: matrix uniq



Youichi Mano wrote:
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.

Is there any idea?



Umm, use 'uniq'...?

pretzalz@Pretzalz:~$ uniq -W1 << EOF
> 1 eagle 197
> 1 bird 387
> 2 camera 91
> 2 dog 62
> 3 apple 89
> EOF
1 eagle 197
2 camera 91
3 apple 89



Reply to: