On Wed, 10 Nov 2004 14:43:01 +0000
Rod Person <[EMAIL PROTECTED]> 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. '[EMAIL PROTECTED]@[EMAIL PROTECTED]'

Cheers,
-- 
        Miguel Mendez <[EMAIL PROTECTED]> | 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

Attachment: pgpfuuM5YtCZw.pgp
Description: PGP signature

Reply via email to