<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div> <br> <div id="bloop_sign_1485801813916152064" class="bloop_sign"></div> <br><p class="airmail_on">On January 30, 2017 at 12:37:07, Rick Hornsby (<a href="mailto:richardjhornsby@gmail.com">richardjhornsby@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap:break-word"><div></div><div>
<title></title>
<div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<br>
<div id="bloop_sign_1485800305798890240" class="bloop_sign"></div>
<br>
<p class="airmail_on">On January 30, 2017 at 11:57:53,
<a href="mailto:jep200404@columbus.rr.com">jep200404@columbus.rr.com</a> (<a href="mailto:jep200404@columbus.rr.com">jep200404@columbus.rr.com</a>)
wrote:</p>
<blockquote type="cite" class="clean_bq">
<div>
<div><span>How does one do nothing gracefully in a Bourne shell for
loop?<br>
<br>
A example that fails to do nothing gracefully
follows.<br></span></div>
</div>
</blockquote>
<div><br></div>
<div><br></div></div></div></span></blockquote>...<br><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div style="word-wrap:break-word"><div>An option that might be slightly less readable but could be done in fewer lines (eliminates the explicit loop construct entirely) is to use `find` with exec mv or xargs. I haven't tested this, so consider it metacode -</div><div><br></div><div>find . -name '^[a-z]*' -maxdepth 1 -exec mv "{}" "$prefix-{}" \;</div></div></span></blockquote></div><p>Apologies - I was making the search part too complicated. `find` assumes the ^ anchor automagically.</p><p>find . -name '[a-z]*' -maxdepth 1 -exec ...</p><p><br></p><div></div></body></html>