On Wed, Nov 10, 2004 at 02:43:01PM +0000, Rod Person wrote: > > 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' ^^^^^^^^^^^^^^^^^^^^^^^
my guess is: after expanding $REPLACELINE your command looks like you see above, which is not what you wanted. proposed solution: use other delimiters for sed. _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"