[CLUE-Tech] Re: removing spaces from filenames

David Anselmi anselmi at anselmi.us
Fri May 21 08:55:20 MDT 2004


Jed S. Baer wrote:
> On Fri, 21 May 2004 00:26:28 -0400
> Angelo Bertolli <angelo at freeshell.org> wrote:
> 
>>This looks pretty cool, can I pipe find through it instead of ls?  As it
>>turns out some directories have spaces too...
> 
> Sure, you *can*. I don't know whether you *should*. ;-) I've never tested
> it with find output. The main thing is that if you rename the directory
> before the files below it are renamed, then the mv command will fail
> because it'll have the wrong directory name.

I think that using -depth will take care of that.  But find will give 
you a complete path so you have to make sure you only process the last 
element (directory or file) in the name.

Dave



More information about the clue-tech mailing list