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
- Re: [SLUG] Re: search and replace Herbert Xu
- Re: [SLUG] Re: search and replace Peter Samuel
- Re: [SLUG] Re: search and replace Herbert Xu
- Re: [SLUG] Re: search and replac... Peter Samuel
- Re: [SLUG] Re: search and replac... Herbert Xu
- Re: [SLUG] Re: search and replac... Peter Samuel
- Re: [SLUG] search and replace Tony Cook
- Re: [SLUG] search and replace Rodos
- Re: [SLUG] search and replace James Wilkinson
- [SLUG] Re: search and replace Angus Lees
- DNS Serial Number Re: [SLUG] search and replace Peter Samuel
- DNS Serial Number Re: [SLUG] search and replace Dean Hamstead
- Re: DNS Serial Number Re: [SLUG] search and repla... Peter Samuel
- Re: DNS Serial Number Re: [SLUG] search and r... Dean Hamstead
- Re: DNS Serial Number Re: [SLUG] search a... Alexander Else
- Re: DNS Serial Number Re: [SLUG] search a... Peter Samuel
- Re: DNS Serial Number Re: [SLUG] sea... Dean Hamstead
- Re: DNS Serial Number Re: [SLUG]... Peter Samuel
- Re: DNS Serial Number Re: [SLUG]... Andrew Shipton
- RE: [SLUG] search and replace Jill Rowling
- Re: [SLUG] search and replace Herbert Xu
