I second that one!!!  It will help you in the long run with learning Regular
Expressions!

but....

sed 's/hostname=Venus/hostname=Mar/' Foo

that should do it!

DK



-----Original Message-----
From: Paul Branston [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 9:12 AM
To: [EMAIL PROTECTED]
Subject: Re: How To: use sed to substitute charaters in string


On Fri, Aug 09, 2002 at 05:50:19AM -0700, truc nguyen wrote:
> Hi List,
> 
> I want to subtitute the line "hostname=Venus" with the
> line "hostname=Mar" in the file network. What command
> line in sed I should use ?
> Any suggestion would be greatly appreciate.

Buy the OReilly book Sed and Awk ?



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to