<div class="gmail_quote">2008/10/23 Michael Reiner <span dir="ltr"><<a href="mailto:mr@radarseven.com">mr@radarseven.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Most excellent, thanks Sven!<div>Didn't know this functionality existed in a Terminal session!</div><div>This is exactly what I needed.</div><div><br></div><div>Now I just need to figure out how to write a simle bundle to automate the process a bit, </div>
<div>i.e. create a bundle that will output the current file to an HTML file with the same name and in the same directory.</div><div>Any insight or resources that could point me in the right direction?</div></div></blockquote>
<div><br></div><div>Try putting this in a text file:</div><div><br></div><div>php "$1" > `dirname "$1"`/`basename "$1" php`html</div><div><br></div><div>Save it under some convenient name, like do_convert</div>
<div>call chmod +x do_convert to make it executable</div><div><br></div><div>and use it like:</div><div><br></div><div>do_convert some_file.php</div><div><br></div><div>that will save some_file.html in the same directory as the input file</div>
<div><br></div></div>-- <br>Sven Axelsson<br>++++++++++[>++++++++++>+++++++++++>++++++++++>++++++<br>>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.<br>+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.<br>