On Fri, 9 Aug 2002, 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.


as i'm sure others will respond WRT sed, let me recommend perl:

$ perl -pi 's/hostname=Venus/hostname=Mar/'  <list of filenames here>

experiment with this construct first to make sure you understand
how it works.

rday



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

Reply via email to