Date: Wed, 26 Sep 2001 07:32:31 +0300 From: Giorgos Keramidas <charon@labs.gr> To: "Brian T.Schellenberger" <bts@babbleon.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: silly sed question Message-ID: <20010926073231.C1466@hades.hell.gr> In-Reply-To: <01092509275503.00814@i8k.babbleon.org> References: <1001421024.3bb078e00bc61@webmail.neomedia.it> <01092509275503.00814@i8k.babbleon.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Brian T.Schellenberger <bts@babbleon.org> wrote: >=20 > Here's what I do to work around this. >=20 > In startup scripts, I >=20 > setenv S '$' > setenv Q "'" > setenv QQ '"' >=20 > Then I do things like this with >=20 > sed -e "/^TARGETS/ s/$Q$S/ blob4$Q/" myfile >=20 > Good luck. Seems to work nicely that way. Thanks! I'll stick to zsh for the moment though. Years of working with Bourne shells have made me reluctant to switch. -giorgos --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE7sVpe1g+UGjGGA7YRAtfRAJ9+l6unFgjXJCXd7+6YkllXwjcwKwCeOcmF jrha3ale2sEVpRqGe2SvXcA= =6RSr -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010926073231.C1466>