Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to combine thousands of html files into one html file?

Reply
Thread Tools

How to combine thousands of html files into one html file?

 
 
John Dalberg
Guest
Posts: n/a
 
      08-20-2006
I have a few thousands of html files in a folder. I need to combine them
into a single html file with a single body tag. I don't care about the
Javascript , title .. etc. I need to view the files in a long html file.

Is there any Windows tool that can do this?

John Dalberg
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      08-20-2006
John Dalberg wrote:

> I have a few thousands of html files in a folder. I need to combine them
> into a single html file with a single body tag. I don't care about the
> Javascript , title .. etc. I need to view the files in a long html file.
>
> Is there any Windows tool that can do this?


Relatively trivial with HTML::TreeBuilder I suspect.
http://search.cpan.org/~sburke/HTML-...TreeBuilder.pm

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
 
Spartanicus
Guest
Posts: n/a
 
      08-20-2006
(John Dalberg) wrote:

>I have a few thousands of html files in a folder. I need to combine them
>into a single html file with a single body tag. I don't care about the
>Javascript , title .. etc. I need to view the files in a long html file.
>
>Is there any Windows tool that can do this?


type *.html >> total

Then use your editor's S&R to remove the duplicated elements and
re-insert the needed elements.

--
Spartanicus
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Combine many files into one using perl kishore.maheshwari@gmail.com Perl Misc 5 03-22-2006 09:15 PM
Combine 2 or more XMLDocuments into one... David Lozzi ASP .Net 1 10-19-2005 02:02 AM
How to combine tree controls into one ad ASP .Net 1 07-14-2005 09:29 AM
Combine 2 BIN & CUE files into one? Kenny Computer Support 0 10-08-2004 03:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57