Thank you, but it still gives error, because I can't cd to a dir containing spaces, like:<br><br>cd /home/user/some dir what has spaces/something<br><br>but I think I found something, "renaming using inode"<br>
<br><div class="gmail_quote">On Sat, Jun 27, 2009 at 7:54 PM, Smoot Carl-Mitchell <span dir="ltr"><<a href="mailto:smoot@tic.com">smoot@tic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, 2009-06-27 at 18:54 +0200, Soren Orel wrote:<br>
> Hi<br>
> I wrote a little script that removes spaces, dashes, and so on from<br>
> the filenames in a directory ($1), and lowercase all filename letters,<br>
> etc.<br>
><br>
> how could I complete the script, that so it will "recursively" do the<br>
> same thing?<br>
<br>
</div>You could stick it in "find" and have find do the recursion.<br>
<br>
find . -type d -exec your_script {} \;<br>
--<br>
Smoot Carl-Mitchell<br>
Computer Systems and<br>
Network Consultant<br>
<a href="mailto:smoot@tic.com">smoot@tic.com</a><br>
+1 480 922 7313<br>
cell: +1 602 421 9005<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>