In the last episode (Nov 21), Norbert Koch said:
> adrian kok <[EMAIL PROTECTED]> writes:
>
> > I tried:
> >
> > sed -n 's/192.168.0.1/172.16.0.1/w abc.com.tmp'
> > abc.com
> >
> > file abc.com.tmp
> > only shows l line
> > abc.com 172.16.0.1
> > and missing localhost.abc.com 127.0.0.1
>
> sed 's/192.168.0.1/172.16.0.1/' abc.com > abc.com.tmp
Also note that on FreeBSD 4.7 and newer, you can do an in-place update
of a file with sed if you use the -i flag.
--
Dan Nelson
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message