Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 01:16:55 -0500 (EST)
From:      Kok Kok <cckok002000@yahoo.ca>
To:        freebsd-questions@FreeBSD.ORG
Subject:   sed to replace the words
Message-ID:  <20030312061655.26510.qmail@web13305.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi all

I have question how to replace words using sed

./script 61.100 192.168

The script is 
#!/bin/sh
sed -e 's/$2/$1/g' file > newfile

The problem is 192.168 can't replace 61.100 in the
newfile

Please help

Thank you




______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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