> If you're updating both the HTML and the checksum often, you need something a bit more dynamic, I think, like a CGI script.<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div class="h5">
<br clear="all"><br></div></div>I don't get it either.  If I update template.html how does that update make it<br>to output.html other than by running sed?  I'd rather not have to run sed to get <br>updates out that aren't related to the checksum.<br>


<br>Originally when I asked I thought maybe there's an html tag that <br>would take a file name and embed the file's contents into the page, <br>but I guess that doesn't exist.<br></blockquote><div><br>HTML itself is just plain text, there aren't any tags that run operations on the server like including a file's contents into the page. <br>

<br>Depending on where you're hosting you could use CGI, Server Side Includes, PHP, or any number of other language options to do the job.  <br></div></div><br><br>If you want to use a shell script, with no template, you could try something like this: <br>

<br>Step 1: Enclose the md5 sum with <span> tags and an ID you can use to find it. <span id='progmd5'>705e7980394e597ade51f8ccd2cbfe20 MyProgram.exe</span><br><br>Script option 1 -- inline md5sum: <br>

perl -p -i -e "s|(<span id='progmd5'>).*?(</span>)|\${1}`md5sum MyProgram.exe`\${2}|" output.html<br><br>Script option 2 -- md5sum in variable<br>PROGRAM_MD5=`md5sum test.html`<br>perl -p -i -e "s|(<span id='progmd5'>).*?(</span>)|\${1}$PROGRAM_MD5\${2}|" output.html<br>

<br>The above regex assumes that the start and end span tags are on the same line. <br><br><br>-- <br><a href="http://fridleyfarmer.com" target="_blank">http://fridleyfarmer.com</a> -- The Fridley Farmer<br><a href="http://stuporglue.org" target="_blank">http://stuporglue.org</a> -- Web programming, Moore's Ramblings III and other Miscellaneous Projects<br>