<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><div><div id="1">---- On Tue, 10 Jun 2014 16:14:34 -0700 <b>Eliot Miranda &lt;eliot.miranda@gmail.com&gt;</b> wrote ---- <br></div></div></div><br><blockquote style="border-top-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid; padding-top: 7px; padding-right: 7px; padding-bottom: 7px; padding-left: 7px; background-color: rgb(245, 245, 245);"><div><div><div>...<br></div><div>Add an exit trap though:</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;#!/bin/bash</div><div>&nbsp; &nbsp; &nbsp; &nbsp; trap 'exit 2' HUP INT PIPE TERM 0<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;for d in newspeak.cog.* newspeak.stack.* squeak.*; do</div> <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; if test -d "$d"; then</div><div>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (cd $d;./makeallclean)</div><div>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo no $d directory found</div><div>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; fi</div> <div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;done&nbsp;</div></div></div></div></blockquote> <br><div><br></div><div><br></div><div>Freaking awesome.<br></div><div><br></div><div>I have added this technique to my notes.</div><div><br>Thank you for your time.<br></div><div><br></div><br></div></body></html>