Dir search and concat

From: AstroDrabb (astrodrabb_at_gmail.com)
Date: 02/19/05


Date: Fri, 18 Feb 2005 20:50:05 -0500
To: Beg-Perl <beginners@perl.org>

Does anyone know if there are any Perl scripts out there that will do
the following:

I want a script that gets pointed to a directory and searches that
directory and all
sub-directories for *.html (or I can just pass all the files to it
with a simple find
command) . When it finds an *.html file it reads it in and searches
for a simple
start tag like <!-- Begin scan --> and grabs all the HTML after the
tag until it finds
an end tag like <!-- End scan --> and just concats that to one big HTML file.

Thanks for any help,

Jim Drabb

-- 
----------------------------------------------------------
The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
----------------------------------------------------------
James Drabb JR
Senior Programmer
Clermont, FL USA


Relevant Pages