From owner-freebsd-questions Tue Sep 25 22: 6:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 00B4937B40E for ; Tue, 25 Sep 2001 22:06:43 -0700 (PDT) Received: from hades.hell.gr (patr530-a028.otenet.gr [212.205.215.28]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f8Q56cN04069; Wed, 26 Sep 2001 08:06:38 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f8Q4WVG01600; Wed, 26 Sep 2001 07:32:31 +0300 (EEST) (envelope-from charon@labs.gr) Date: Wed, 26 Sep 2001 07:32:31 +0300 From: Giorgos Keramidas To: "Brian T.Schellenberger" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: silly sed question Message-ID: <20010926073231.C1466@hades.hell.gr> References: <1001421024.3bb078e00bc61@webmail.neomedia.it> <01092509275503.00814@i8k.babbleon.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <01092509275503.00814@i8k.babbleon.org> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Brian T.Schellenberger 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