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 command line. > > Is there any idea?
RTFM? After a quick look at uniq(1), I came up with something that has the desired output. Where foo is the name of the file, and you want the leftmost field: $ uniq -f0 -W1 foo The fields are numbered from 0-n, with 0 being the leftmost. -- Seneca [EMAIL PROTECTED]
pgp00000.pgp
Description: PGP signature