[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Is there a way to clone host definitions in bb-hosts?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Is there a way to clone host definitions in bb-hosts?
- From: "Hobbit User in Richmond" <hobbit (at) epperson.homelinux.net>
- Date: Tue, 10 Jun 2008 21:26:03 -0400 (EDT)
- Importance: Normal
- References: <4608520a0806101629k6edd1ee6y61d7e18c0b28f402 (at) mail.gmail.com> <961092e10806101637j5fee9025q92c7e7514eb3b615 (at) mail.gmail.com> <4608520a0806101750j36927f9arc7a13a83a64b95f5 (at) mail.gmail.com>
- User-agent: SquirrelMail/1.4.13-1.fc8
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.
regards,
j.
Hodie natus est radici frater.