Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 13:34:27 -0600
From:      Eric Six <erics@sirsi.com>
To:        questions@FreeBSD.ORG
Subject:   Text editiing.... possibility for perl?
Message-ID:  <DC32C8CEB3F8D311B6B5009027DE5AD503D207BB@stlmail.dra.com>

next in thread | raw e-mail | index | archive | help
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

So I need the first comma changed to a minus, the next two comma's a
tab, and the last three changed to periods. I can do some of this
with 'cut' but not everything I want to do... I figure I cannot be
the only one that has had to populate a massive amount of forward and
reverse files in bind.. I figure there might be a perl script for
this?? 


TIA
Eric

Eric Six                 erics@sirsi.com
Network Specialist
SIRSI 
v : 1.800.372.8527.356
f : 314.993.8927


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>;

iQA/AwUBPE8QHsbzOHaBcCrEEQJexwCgv3Zbw4opAinpt4xXJ9qqvx39ka0An2tW
olfZuwJuBjOi63J+P1sZg67l
=AD9h
-----END PGP SIGNATURE-----

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?DC32C8CEB3F8D311B6B5009027DE5AD503D207BB>