Alexander Langer <alex(at)big.endian.de> wrote:
> Also sprach Oliver Fromme (olli(at)secnetix.de):
> > Unter UNIX macht man das natürlich mit uniq.
>
> Wie genau? Ich hab das Problem auch oefters, und mir konnte uniq da bis
> jetzt noch nicht helfen:
> [...]
Achso -- dann war die Problembeschreibung nicht exakt ge-
nug. Das Tool uniq entfernt natürlich nur doppelte Zeilen,
die aufeinander folgen.
Welches die eleganteste Lösung ist, darüber kann man sich
möglicherweise streiten. Ist vielleicht Geschmacks- oder
Gewöhnungssache. Ich persönlich würde awk nehmen (YMMV):
awk '!x[$0]++'
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. I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say "Daddy, where were you when they took freedom of the press away from the Internet?" -- Mike Godwin To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Sat 01 Mar 2003 - 12:39:04 CET