Unworthy hack that I remain... I beseech mercy and
humbly request the honored for direction to a script so I can modify for the following task:
==================
I can strip out either the header or footer server includes calls in the multitude of over 3000 html files.
Now....
I want to take the remaining hard coded html content of the files and port it into a table cell in a new template I've built and have the script save the new file with the original file name.
So, What I think I need to do is locate a script that finds the file name of each of the 3000 files, input the remaining html code, and build a file with the original name using my new template.
The new template will be a table so i figure I can have a place marker in that table cell, and input the remaining html code of each file into that cell.
Do you know of a script close to this plan i can modify?
Do you have any other suggestions how-to automate this process; namely:
grep/join/build a new file using the original name for the thousands of html files?
much obliged,
unworthy hack Stretch
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.