[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] search and replace
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 peter@nospam.eserv.com.au
Technical Consultant or at present:
eServ. Pty Ltd Peter.Samuel@nospam.ind.tansu.com.au
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 slug-request@nospam.slug.org.au with
unsubscribe in the text