Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 14:43:01 +0000
From:      Rod Person <personrp@hotpop.com>
To:        freebsd-questions@freebsd.org
Subject:   Sed Help.....
Message-ID:  <200411101443.01977.personrp@hotpop.com>

next in thread | raw e-mail | index | archive | help
I trying to write a script that will make it easier for a friend that I 
finally talked into trying Freebsd setup a desktop.

This part of the script is suppose to change the line in the ttys file
to allow kdm to start on boot. 

Here is the relavent code:

    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'

I can't seem to figure this out and the only things I've found in
searching is that sed had a problem with replacing strings over
4096 bytes, but I don't think this is the cause and all those post
were years old.

This is on FreeBSD 5.3.

Rod



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411101443.01977.personrp>