Date: Wed, 10 Nov 2004 21:02:44 +0100 From: Miguel Mendez <flynn@energyhq.es.eu.org> To: personrp@hotpop.com Cc: freebsd-questions@freebsd.org Subject: Re: Sed Help..... Message-ID: <20041110210244.359a885f.flynn@energyhq.es.eu.org> In-Reply-To: <200411101443.01977.personrp@hotpop.com> References: <200411101443.01977.personrp@hotpop.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Wed__10_Nov_2004_21_02_44_+0100_aWbmBt1ImK5fzX.p Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Wed, 10 Nov 2004 14:43:01 +0000 Rod Person <personrp@hotpop.com> wrote: Hi, > KDMLINE="/usr/local/bin/kdm -nodaemon" > REPLACELINE="/usr/X11R6/bin/xdm -nodaemon" > > sed -e "s/$REPLACELINE/$KDMLINE/g" /etc/test/ttys > /etc/test/new > > Here is the error I'm getting: > sed: 1: "s//usr/X11R6/bin/xdm -n ...": bad flag in substitute > command: 'X' > Both strings contain /, so you have to either escape it "\/" or use different command separator, e.g. 's@$REPLACELINE@$KDMLINE@g' Cheers, -- Miguel Mendez <flynn@energyhq.es.eu.org> | Extreme ways are back again http://www.energyhq.es.eu.org | Extreme places I didn't know PGP Key: 0xDC8514F1 | I broke everything new again Note: All HTML mail goes to /dev/null | Everything that I'd owned --Signature=_Wed__10_Nov_2004_21_02_44_+0100_aWbmBt1ImK5fzX.p Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBknPonLctrNyFFPERAhyHAJ9Cu3HDnWRfLSCvoF3ocqZijnRd2gCgkFy2 Vkg0jT7hA4rYGPd9LPtOG0c= =1LWe -----END PGP SIGNATURE----- --Signature=_Wed__10_Nov_2004_21_02_44_+0100_aWbmBt1ImK5fzX.p--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041110210244.359a885f.flynn>