Re: Schnippsel in Datei einfuegen

From: Oliver Fromme <olli(at)secnetix.de>
Date: Fri, 8 Nov 2002 22:10:10 +0100 (CET)

Matthias Teege <matthias-dbsdq(at)mteege.de> wrote:
> On Tue, Nov 05, 2002 at 06:46:16PM +0100, Oliver Fromme wrote:
> > sed '/^%%EndFeature$/r/usr/local/share/mytray'
>
> Ja, das funktioniert. Allerdings kommt »%%EndFeature« mehrfach vor und
> der Inhalt der Datei braucht nur einmal eingefügt werden. Kann man
> nach dem Einfügen der Datei auf »Durchzug« schalten.

Hmm, weiß ich jetzt so auf Anhieb nicht bei sed. Da würde
ich dann doch eher awk nehmen; da ist das ganz einfach.

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 Fri 08 Nov 2002 - 22:10:14 CET

search this site