On Tue, 27 Jun 2000, Dean Hamstead wrote:

> 
> Is there a command in vi or somesuch standard cli editor to search and
> replace

In vi (or vim)

    :g/\.org/s//.com/g

In perl

    perl -i -p -e 's#.org#.com#g' filename

> 
> in my case change all ".org" entries to ".com" in the dns files
> im sure awk or seomthing can do it also....

DO NOT FORGET TO UPDATE THE DNS SERIAL NUMBER!

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to