On Tue, 27 Jun 2000, Dean Hamstead wrote: > Is there a command in vi or somesuch standard cli editor to search and > replace > > in my case change all ".org" entries to ".com" in the dns files > im sure awk or seomthing can do it also.... In vi you can use: %s/\.org/.com/g (for every line, replace every literal .org with .com) But this requires loading each file (I'm not a vi* user, so there might be a way of doing it) Perl has a handy in-place edit feature: perl -i.bak -pe 's/\.org/.com/g' files ... -- 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] search and replace Herbert Xu
- Re: [SLUG] search and replace Michael Lake
- Re: [SLUG] search and replace Matthew Dalton
- Re: [SLUG] Re: search and replace Peter Samuel
- 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
- 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
