Re: delete lines that contain duplicated column items

2007-04-03 Thread Jeff Zhang
On 4/4/07, Ken Irving <[EMAIL PROTECTED]> wrote: On Tue, Apr 03, 2007 at 08:19:10PM +0800, Jeff Zhang wrote: > I have a simple txt file, like: > ... > a a > aa a > b b > ba b > ... > > I want to just keep the lines that first appeared in column 2 and delete the follow lines that > contain duplic

Re: delete lines that contain duplicated column items

2007-04-03 Thread Ken Irving
On Tue, Apr 03, 2007 at 08:19:10PM +0800, Jeff Zhang wrote: > I have a simple txt file, like: > ... > a a > aa a > b b > ba b > ... > > I want to just keep the lines that first appeared in column 2 and delete the > follow lines that > contain duplicated ones in column 2. > then it will like: > ..

Re: delete lines that contain duplicated column items

2007-04-03 Thread Jeff Zhang
On 4/4/07, Cameron Hutchison <[EMAIL PROTECTED]> wrote: Jeff Zhang wrote: >On 4/3/07, Ron Johnson <[EMAIL PROTECTED]> wrote: >> >> On 04/03/07 07:39, Jeff Zhang wrote: >> [snip] >> > >> > >> > I just care about duplicated ones in column 2, if so, to delete the >> line. >> >> Does it matter whic

Re: delete lines that contain duplicated column items

2007-04-03 Thread Cameron Hutchison
Jeff Zhang wrote: >On 4/3/07, Ron Johnson <[EMAIL PROTECTED]> wrote: >> >> On 04/03/07 07:39, Jeff Zhang wrote: >> [snip] >> > >> > >> > I just care about duplicated ones in column 2, if so, to delete the >> line. >> >> Does it matter which line is deleted? >> >no, have a unique column 2 and keep

Re: delete lines that contain duplicated column items

2007-04-03 Thread Jeff Zhang
On 4/3/07, Ron Johnson <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/03/07 07:39, Jeff Zhang wrote: [snip] > > > I just care about duplicated ones in column 2, if so, to delete the line. Does it matter which line is deleted? no, have a unique column 2 and keep

Re: delete lines that contain duplicated column items

2007-04-03 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/03/07 07:39, Jeff Zhang wrote: [snip] > > > I just care about duplicated ones in column 2, if so, to delete the line. Does it matter which line is deleted? - -- Ron Johnson, Jr. Jefferson LA USA Give a man a fish, and he eats for a day. Hit

Re: delete lines that contain duplicated column items

2007-04-03 Thread Douglas Allan Tutty
On Tue, Apr 03, 2007 at 08:19:10PM +0800, Jeff Zhang wrote: > I have a simple txt file, like: > ... > a a > aa a > b b > ba b > ... > > I want to just keep the lines that first appeared in column 2 and delete the > follow lines that contain duplicated ones in column 2. > then it will like: > ... >

Re: delete lines that contain duplicated column items

2007-04-03 Thread Jeff Zhang
On 4/3/07, Joe Hart <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Zhang wrote: > I have a simple txt file, like: > ... > a a > aa a > b b > ba b > ... > > I want to just keep the lines that first appeared in column 2 and delete > the follow lines that contain dup

Re: delete lines that contain duplicated column items

2007-04-03 Thread Joe Hart
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Zhang wrote: > I have a simple txt file, like: > ... > a a > aa a > b b > ba b > ... > > I want to just keep the lines that first appeared in column 2 and delete > the follow lines that contain duplicated ones in column 2. > then it will like: >