[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] search and replace
Dean Hamstead <zort@nospam.penrithcity.nsw.gov.au> wrote:
>
> in my case change all ".org" entries to ".com" in the dns files
> im sure awk or seomthing can do it also....
sed 's/\.org\(\.\)\?\([[:blank:]]\|$\)/.com\1\2/g'
I am assuming of course that you are doing this to DNS zone files. Otherwise
change [[:blank:]] to whatever separator that you're using.
--
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@nospam.gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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