On Sun, Jul 15, 2012 at 12:50 PM, Brian Wood <span dir="ltr"><<a href="mailto:woodbrian77@gmail.com" target="_blank">woodbrian77@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<br>
> The sense I got was that Brian was managing a website with static<br>
> .html pages. If I were to script this particular step, I would write a<br>> Python script to FTP the file down to /tmp, modify it, and then FTP it<br>
> back up.<br>
><br>
> You could also do this with a shell script, and use sed to do the modification.<br clear="all"><br>I'm using a shell script and the sed option is what I'm pursuing at the moment.<span><font color="#888888"><br>


</font></span></blockquote><div><br>The easiest might be to have a separate template and and output file. The template would have something like MD5SUM_GOES_HERE where you want the md5 sum, then the command would simply be <br>

<br>cat template.html | sed "s/MD5SUM_GOES_HERE/`md5sum direct.tar.bz2`/g" > output.html<br><br>Sounds like you're already headed down another path, but if that doesn't work out, you've got other options.<br>


<br></div></div>Michael<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>