<span style="font-family:courier new,monospace">touch &quot;test file&quot;</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">for file in *&quot; &quot;*; do echo &quot;File: ${file}&quot;; newFile=`echo &quot;${file}&quot; | sed -e &#39;s/ /_/g&#39;`; echo &quot;New File: ${newFile}&quot;; mv &quot;${file}&quot; &quot;${newFile}&quot;; done</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">File: test file</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">New File: test_file</span><br style="font-family:courier new,monospace">
<br>I can&#39;t document it now but with luck man pages and google will help. Run the one line command (which is a loop of multiple commands) in the directory with files with spaces in. Replaces them with underscore.<br><br>
<br><div class="gmail_quote">On 30 April 2012 18:50, sharon kimble <span dir="ltr">&lt;<a href="mailto:boudiccas@talktalk.net" target="_blank">boudiccas@talktalk.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i am using genisoimage on this folder ...../home/boztu/Music/Irish Celtic<br>
Music Collection Version 2 .... which contains 2976 mp3s, but it is truncating<br>
the file names after the first word of their title. It appears to be doing this<br>
at the first space that it encounters, so I&#39;m hoping someone can help me by<br>
suggesting a script that I can run that will remove all spaces in the file<br>
names, before .mp3, to enable genisoimage to run properly. The iso it creates<br>
is 18.9gbs in size and I then run split to make it into 4gb sized files to be<br>
burnt to dvds.<br>
<br>
Can you help me please?<br>
<br>
Thank<br>
<span class="HOEnZb"><font color="#888888">Sharon.<br>
--<br>
A taste of linux = <a href="http://www.sharons.org.uk/taste/index.html" target="_blank">http://www.sharons.org.uk/taste/index.html</a><br>
efever = <a href="http://www.efever.blogspot.com/" target="_blank">http://www.efever.blogspot.com/</a><br>
efever = <a href="http://sharon04.livejournal.com/" target="_blank">http://sharon04.livejournal.com/</a><br>
Debian 6,0.4, Gnome 1:2.30+7, LibreOffice 3.5.2<br>
Registered Linux user 334501<br>
<br>
_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
</font></span></blockquote></div><br>