[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: "Josh Luthman" <josh (at) imaginenetworksllc.com>
- Date: Tue, 10 Jun 2008 22:23:06 -0400
- References: <4608520a0806101629k6edd1ee6y61d7e18c0b28f402 (at) mail.gmail.com> <961092e10806101637j5fee9025q92c7e7514eb3b615 (at) mail.gmail.com> <4608520a0806101750j36927f9arc7a13a83a64b95f5 (at) mail.gmail.com> <38244.192.168.0.1.1213147563.squirrel (at) epperson.homelinux.net>
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.
>
> regards,
> j.
>
> Hodie natus est radici frater.
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer