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 messageReceived on Fri 28 Feb 2003 - 17:40:06 CET