From: Louis J Scoras Date: 2005-10-06T21:31:36+09:00 Subject: Re: One-liner removing duplicate lines ------=_Part_4899_23305975.1128601893165 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > $ cat -n input | sort -k2 | uniq -f1 | sort | sed -e 's/^ *[0-9]*\t//' > > output > Woops, that second sort needs an `-n` flag to sort numeric. Above will only work if you have <10 lines. ------=_Part_4899_23305975.1128601893165--