Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 2009 10:05:18 +0200
From:      Jonathan McKeown <j.mckeown@ru.ac.za>
To:        freebsd-questions@freebsd.org
Subject:   Re: Merging Related Information from 2 Tables
Message-ID:  <200910301005.18537.j.mckeown@ru.ac.za>
In-Reply-To: <200910291844.n9TIiC5v037167@dc.cis.okstate.edu>
References:  <200910291844.n9TIiC5v037167@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 29 October 2009 20:44:12 Martin McCormick wrote:
> Giorgos Keramidas writes:
> > You should use a Perl or Python script, and a hash...
> >
> > If you show us a few sample lines from the input file and how you want
> > the output to look, it shouldn't be too hard to quickly hack one of those
> > together.

The alternative is to use join(1).

> 	A records look like:
>
> hydrogen.cis.osu. 43200	IN	A	192.168.2.123
>
> Text or TXT records look similar [...]
>
> hydrogen.cis.osu. 5	IN	TXT	"cordell-north,009,192.168.2.123"

This will work well since the default join field is the first field in the 
line.

Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910301005.18537.j.mckeown>