I can't take all the credit, it'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"><<a href="mailto:info@paully.co.uk" target="_blank">info@paully.co.uk</a>></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 "* *" |<br>
while IFS= read -r NAME;<br>
do<br>
DEST=`echo "$NAME" | tr ' ' '_'`<br>
mv -v "${NAME}" "${DEST}"<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>