<div dir="ltr">Hi Timothy,<div><br></div><div>    I find this code confusing.  Bear with me?  So if one wanted to evaluate d in newspeak.cog.spur newspeak.cog.v3 alongside p in &quot;Newspeak Spur Virtual Machine&quot; &quot;Newspeak Virtual Machine&quot; how would you write that?</div>
<div><br></div><div>I write it via</div><div><br></div><div>IFS=&quot;</div><div>        &quot;<br></div><div><div>set -- Newspeak\ Virtual\ Machine       Newspeak\ Spur\ Virtual\ Machine</div><div>for d in newspeak.cog.v3 newspeak.cog.spur; do</div>
<div>...</div><div>        shift<br></div><div>done</div></div><div><br></div><div>where IFS is lf tab.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 11:55 AM, gettimothy <span dir="ltr">&lt;<a href="mailto:gettimothy@zoho.com" target="_blank">gettimothy@zoho.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><u></u><div><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>    anyone know of the nicest way of doing with: do: in bash?  Right now I&#39;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>    blah $1 $v</div><div>    shift</div><div>done</div></div></div></blockquote></div><div><br></div><div>I don&#39;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 &#39;iterate through array values&#39; 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></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div>