Re: doppelte Zeilen

From: Oliver Fromme <olli(at)secnetix.de>
Date: Fri, 28 Feb 2003 17:40:03 +0100 (CET)

Robert Barten <robert(at)barok.de> wrote:
> On Thu, Feb 27, 2003 at 08:26:26PM +0100, Matthias Teege wrote:
> > ich brauche ein Tool zur Entfernung doppelter Einträge in einer
> > Textdatei.
> [...]
> perl -ne 'print unless $zeile{$_} ++;' datei > neue_datei

*aua*

> Bin auf die BSD-Bordmittel gespannt :)

Unter UNIX macht man das natürlich mit uniq.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"Clear perl code is better than unclear awk code; but NOTHING
comes close to unclear perl code"  (taken from comp.lang.awk FAQ)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 28 Feb 2003 - 17:40:06 CET

search this site