[hobbit] Is there a way to clone host definitions in bb-hosts?
josh at imaginenetworksllc.com
Wed Jun 11 04:23:06 CEST 2008
Wait - could you not just sort the entire file by $1 and then wc and
have it output what has occured 2 or more times?
On 6/10/08, Hobbit User in Richmond <hobbit at epperson.homelinux.net> wrote:
> On Tue, June 10, 2008 20:50, John Burk wrote:
>> let's just assume that after wrangling *nix machines for over 20 years
>> I'm familiar with a couple of shells.
>> What I'm looking for is a more helpful answer; loading several files
>> up into vi and doing a search and replace on all lines that match a
>> pattern feels kludgy to me.
> Same background here, and my thoughts about that response were less
> charitable than yours.
> You probably know that whatever you're doing in vi (or vim) with search
> and replace could be scripted using a sed pipe and very similar syntax to
> your vi commands. AFAIK, you'd have to template this yourself and write
> such a script to transform your templates into bb-host includes. I hope
> someone else on the list can be more helpful than that.
> Hodie natus est radici frater.
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
1100 Wayne St
Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
More information about the Xymon