Re: sed-Frage

From: Oliver Fromme <olli(at)secnetix.de>
Date: Mon, 5 Aug 2002 14:05:08 +0200 (CEST)

Oleg Osyka <oleg(at)osyka.de> wrote:
> Ich muß in einer Datei die mehrfach vorhandene Leerzeilen zu einer
> reduzieren.

Hm, als erstes fällt mir da »uniq« ein, hat aber den Nach-
teil, daß es nicht nur mehrfache Leerzeilen zusammenfaßt,
sondern auch andere Zeilen, die sich wiederholen, was of-
fenbar nicht gewünscht wird.

Zweiter Gedanke: cat -s
Tut exakt das Gewünschte.

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.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 05 Aug 2002 - 14:05:12 CEST

search this site