Date: Wed, 23 Jan 2002 15:17:46 -0500 From: Christopher Weimann <cweimann@k12hq.com> To: Eric Six <erics@sirsi.com> Cc: questions@FreeBSD.ORG Subject: Re: Text editiing.... possibility for perl? Message-ID: <20020123151746.A75883@mail.k12us.com> In-Reply-To: <DC32C8CEB3F8D311B6B5009027DE5AD503D207BB@stlmail.dra.com>; from erics@sirsi.com on Wed, Jan 23, 2002 at 01:34:27PM -0600 References: <DC32C8CEB3F8D311B6B5009027DE5AD503D207BB@stlmail.dra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 23, 2002 at 01:34:27PM -0600, Eric Six wrote: > I have a few questions.. I need to edit a few files with a bunch > text. I am creating forward and reverse zone file for a private > network and I want to automate this tedious process.. Here is what I > have. > > I create a basic template in excel, it is as follows; > > host15,1,in,a,10,50,15,1 > host15,2,in,a,10,50,15,2 > host15,3,in,a,10,50,15,3 > > > What I need done after this file is populated is make it look like > this; > host15-1 in a 10.50.15.1 > host15-2 in a 10.50.15.2 > host15-3 in a 10.50.15.3 > awk -F, '{ print $1"-"$2"\t"$3"\t"$4"\t"$5"."$6"."$7"."$8 }' infile > outfile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020123151746.A75883>