<!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;'><br><div id="1">He Eliot</div><div><br></div><div><a href="http://www.menmachinesmaterials.com/Flat/image/scratch.sh" target="_blank">http://www.menmachinesmaterials.com/Flat/image/scratch.sh</a></div><div><br></div><div>On Bash, functions have to be declared before they are used.&nbsp;</div><div>The code starts at the variable declarations and the array iteration loop</div><div><br></div><div>In the loop, the code creates the 'Newspeak Spur Virtual Machine'  &nbsp;and the 'Newspeak Virtual Machine' &nbsp;directories (you probably aready have them, so skip that command in the script)<br></div><div>it then touches a file named by the index of the array</div><div>it then calls the function with the current pdir array item as an argument.</div><div>a new director is created from the indexed name in the ddir array</div><div>a copy of the 'touched' file is copied to that new directory.</div><div><br></div><div>The code ran on my linux box.</div><div><br></div><div>Hopefully that can get you started.</div><div><br></div><div><br></div><div><br></div></div></body></html>