Date: Fri, 01 Feb 2002 12:06:44 -0500 From: Simon Morton <simon.morton@verizon.net> To: Eric Six <erics@sirsi.com> Cc: "'questions@FreeBSD.ORG'" <questions@FreeBSD.ORG> Subject: Re: Perl question... Message-ID: <3C5ACB24.2070504@verizon.net> References: <DC32C8CEB3F8D311B6B5009027DE5AD503D207F8@stlmail.dra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From the (tcsh) command line: % foreach f (`find dir -type f`) foreach? printf '1\ni\n$TTL value;\n.\nw\nq\n' | ed $f foreach? end % Simon Eric Six wrote: > > Though this doesn't pertain to BSD, except for the fact I am running this on > freebsd ;), I wanted to run it by the list as I have gotten wonderful > answers before! > > I have about 400 primary and 300 secondary DNS records that I have migrated > from a bind4 server. I need to add a '$TTL value;' to the first line of all > my zone files... > > I have found ways to append lines to the file, but not to create a new one > at the very beginning. Also, any ideas on how to automate doing this to all > the files in each dir? > > > Tia! > Eric > > Eric Six erics@sirsi.com > Network Specialist > SIRSI > v : 1.800.372.8527.356 > f : 314.993.8927 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > -- http://www.SimonMorton.com smorton at acm dot org \rm -rf /bin/laden 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?3C5ACB24.2070504>