On Wed, Jun 28, 2000 at 12:05:22PM +1000, Peter Samuel wrote:
>
> > Sorry, but this still catches www.org.com which is real :)
>
> True, but whoever posted the original request is almost certainly NOT
> the hostmaster for that domain.
But he may have a CNAME pointing to it :)
> > Though my previous solution was also incorrect in that it would catch www.org
> > if you were in the "com." zone. So try this instead,
> >
> > sed 's/\.org\.\([[:blank:]]\|$\)/.com.\1/g'
>
> Cool. Requires a GNU sed, if I'm not mistaken. Also requres a file swap.
Actually, this is POSIX code. As to the file swap, you can just use this
expression in your favourite vi. Although, in that case, your editor would
be doing the file swapping :)
--
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
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 [EMAIL PROTECTED] with
unsubscribe in the text