matrix uniq

2003-03-15 Thread Youichi Mano
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

Re: matrix uniq

2003-03-15 Thread Travis Crump
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'...? [EMAIL PROTECTED]:~$ uniq -W1 EOF 1 eagle 197 1 bird 387 2 camera 91 2 dog

Re: matrix uniq

2003-03-15 Thread Seneca
On Sun, Mar 16, 2003 at 09:09:36AM +0900, Youichi Mano wrote: 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. [snip example] Such a editing is easy in perl script but I cannot easily do that in

Re: matrix uniq

2003-03-15 Thread Youichi Mano
dear Travis Crump, Umm, use 'uniq'...? [EMAIL PROTECTED]:~$ 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 Thank you. You mean -w option? I want to uniq by any column,any data. For example, if 2nd column

Re: matrix uniq

2003-03-15 Thread Colin Watson
On Sun, Mar 16, 2003 at 09:09:36AM +0900, Youichi Mano wrote: 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. I must say, this arbitrary restriction kind of looks like a homework question to me