[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sed problems: Inserting a line at the FIRST match only



I have a problem of inserting a font path into /etc/X11/XF86Config at a
specific location after the last FontPath statement in the first section
of XF86Config.

I cannot figure out how to convince sed to only do something at the first
location and EndSection occurs. Can somebody help me?

I have done things like that the past with "ed" until I found out that ed
is not a required package and thus I would have to add another dependency
to the packages just for the sake of the postinst script which I would
like to avoid if possible.

Sorry for the announcement of freefont-0.10-2 and sharefont-0.10-2. I
removed the packages after my sed script turned out to make unintended
changes to /etc/X11/XF86Config.

{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}
{}  Consulting available for Networking / Unix / Crossplatform integration    {}
{}  Snail Mail:   FTS Box 466, 135 N.Oakland Ave, Pasadena, CA 91182          {}
{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}
PGP Public Key  =  FB 9B 31 21 04 1E 3A 33  C7 62 2F C0 CD 81 CA B5 

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: