<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br><hr id="stopSpelling"><br><snip><br>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></snip><br><br>actually..yes you can.<br><br>instead of typing "cd /home/user/some dir", type "cd /home/user/some\ dir"<br><br>--cj<br><br>
<br><div class="EC_gmail_quote">On Sat, Jun 27, 2009 at 7:54 PM, Smoot Carl-Mitchell <span dir="ltr"><<a>smoot@tic.com</a>></span> wrote:<br><blockquote class="EC_gmail_quote" style="padding-left: 1ex;">
<div class="EC_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>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>ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a>https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br></body>
</html>