<!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>Hi Eliot</div><div><br></div><div><div>Hi All,</div><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><br></div><div>&nbsp; &nbsp; anyone know of the nicest way of doing with: do: in bash? &nbsp;Right now I've found the following and I think it stinks:<br><div><div><br></div><div>set -- firstone firsttwo firstthree</div> <div>for v in secondone secondtwo secondthree</div><div>do</div><div>&nbsp; &nbsp; blah $1 $v</div><div>&nbsp; &nbsp; shift</div><div>done</div></div></div></blockquote></div><div><br></div><div>I don't know if it is the nicest, but it is nicer.</div><div><br></div><div><a href="http://www.menmachinesmaterials.com/Flat/image/createFlatSourceTree.sh" target="_blank">http://www.menmachinesmaterials.com/Flat/image/createFlatSourceTree.sh</a></div><div><br></div><div>see 'iterate through array values' example here:</div><div><a href="http://www.cyberciti.biz/faq/bash-for-loop-array/" target="_blank">http://www.cyberciti.biz/faq/bash-for-loop-array/</a></div></div></body></html>