On Wed, 28 Jun 2000, Herbert Xu wrote:
> 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 :)
Enough. You win!
>
> > > 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 :)
Cool.
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