I can&#39;t take all the credit, it&#39;s a rehash/extension of an answer posted on this list by James here a week or two ago.<br><br><div class="gmail_quote">On 15 May 2012 13:51, Paul Littlefield <span dir="ltr">&lt;<a href="mailto:info@paully.co.uk" target="_blank">info@paully.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 15/05/12 13:44, David Halliday wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
#!/bin/bash<br>
<br>
find $1 -name &quot;* *&quot; |<br>
while IFS= read -r NAME;<br>
do<br>
   DEST=`echo &quot;$NAME&quot; | tr &#39; &#39; &#39;_&#39;`<br>
   mv -v &quot;${NAME}&quot; &quot;${DEST}&quot;<br>
done<br>
</blockquote>
 <br></div>
Nice one David.<br>
<br>
Paully<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk" target="_blank">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/kent</a><br>
</div></div></blockquote></div><br>