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]

Reply via email to