Here is a one-liner I just wrote to delete duplicate lines in a file. perl -ni.bak -e 'unless ($last eq $_){print $_};$last=$_;' theFile Going with the TMTOWTDI credo, I was just curious if anyone knew of a better way. Thanks, David -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- is there a module ala getopt::long that will... David Blevins
- is there a module ala getopt::long that... Matt Lyon
- Re: is there a module ala getopt::l... Paul Johnson
- Re: Deleting Duplicate Lines one-liner Paul
- Re: Deleting Duplicate Lines one-liner Carl Rogers
- Re: Deleting Duplicate Lines one-li... Paul
- Re: Deleting Duplicate Lines on... Jeff 'japhy/Marillion' Pinyan
- Re:[OT?]Deleting Duplicate ... Paul
- Re:[OT?]Deleting Dupli... Jeff 'japhy/Marillion' Pinyan
- Re:[OT]Deleting Du... Paul
- Re:[OT?]Deleting D... Peter Scott