Do you know what really sucks?

mmcclure at pneservices.com mmcclure at pneservices.com
Fri Aug 16 03:07:41 CEST 2002


Ahh, the power of Unix. 
 
sed -e s/oldstring/newstring/g < oldfile > newfile
 
----------
Mike McClure, CCIE # 5125, CISSP # 30232
PNE Services, Inc.   <http://www.pneservices.com>
http://www.pneservices.com
mmcclure at pneservices.com
mobile: 913-636-5590
 
 
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Wilcox,
Chris
Sent: Thursday, August 15, 2002 3:55 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Do you know what really sucks?
 
When I configured Netsaint [Hostname]'s I used spaces. 
So none of my *.cfg files converted well using the convertcfg util.  No
problem just go through the original hosts.cfg file and put hyphen's in
for spaces and run convertcfg util again.  Worked really that time...
But here's the kicker...all of my Log files have the old Hostnames,
effectively I lose all of my old logs until I can parse through it with
a script and fix the name. (and I thought I was going to get away with
no scripting)
Does anybody have a script already built to find and replace? 
Chris. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020815/60c66e3a/attachment.html>


More information about the Users mailing list