On Tue, 21 Sep 1999, Wallace Nicoll wrote:

> I'm trying to do some massaging of host/dmomain names as part of an
> anlog run, rather than do it using grep/awk/sed etc.
> 
> I'm running against intranet domain names which are of the form
> host.section.department.
> eg it1.it.finance, where the IT section is part of Finance Department.
> Some of the old logs have host entries of it1.finance, it2.finance,
> without the section element.
> 
> I'd like to be able to analyse the old logs and move it1.finance to
> it1.it.finance. Is there anything, like that used in sed to take the
> element in the left hand part of the HOSTALIAS and drop it into the
> second. For example ...
> 
> HOSTALIAS it*.finance it*.its.finance
> 
> It's obviously dependent on the hostname being of a common format,
> otherwise I can do this simply with a bunch of HOSTALIAS lines, but it
> might be useful if there were an option to do the above.
> 
> 

No, sorry, this is beyond analog's pattern matching at the moment. However,
I am half-way through writing some code that will do this for a future
version.

Yours,

-- 
Stephen Turner    [EMAIL PROTECTED]    http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
  "Due to the conflict in Kosovo, we will not be showing the movie Wag the
   Dog. Instead, we will show Mortal Kombat: Annihilation." Cable & Wireless

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to