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.


Best wishes,

Wallace

--
======================================================================
 Wallace Nicoll                          [EMAIL PROTECTED]
 City of Edinburgh Council IT Services,
 Chesser House, 500 Gorgie Road,                Phone : 0131 469 5343
 Edinburgh, EH11 3YJ, Scotland                    Fax : 0131 469 5335
 [From overseas                  [P]+441314695343  [F]+441314695335 ]
======================================================================


------------------------------------------------------------------------
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/analog-help@lists.isite.net/
------------------------------------------------------------------------

Reply via email to