On Wed, 5 Jul 2000, Mike Mohr wrote:
> My brain is not functioning at the moment, so I need help converting
> the following relative to HOSTALIAS.
>
> Hostname received Hostname alias
> ================ ============
> wa4-7-38.aut.ac.nz wa4.aut.ac.nz
> we707-157-41.aut.ac.nz we707.aut.ac.nz
> wwlgp-13.aut.ac.nz wwlgp.aut.ac.nz
> wc609.aut.ac.nz wc609.aut.ac.nz
>
> As you can see, it's a simple extraction of characters before the
> hyphen. However, since other domains use our server, I only want to
> alias the ones for our domain.
>
I don't think you need a regexp. Just try
HOSTALIAS *-*.aut.ac.nz $1.aut.ac.nz
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"The new operating system will recover more easily from system crashes."
(Microsoft, aiming high with Windows Millennium)
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------