[CLUE-Tech] removing spaces from filenames
    Jed S. Baer 
    thag at frii.com
       
    Sat May 15 13:48:18 MDT 2004
    
    
  
On Sat, 15 May 2004 14:35:05 -0400
Angelo Bertolli <angelo at freeshell.org> wrote:
> The for loop in bash treats the spaces in file names as different 
> "elements" for the loop.  This is really annoying as I want to process a
> bunch of files with spaces in them.  Is there any way I can get around 
> this?  Putting " " around the names doesn't seem to help.
Have you tried single quotes?
> Right now I"m thinking about piping find through sed and using mv to 
> rename all the files without spaces, but I wanted to see if anyone else 
> had something better...
I have a Perl script which does this. Let me know if you want it.
jed
-- 
http://s88369986.onlinehome.us/freedomsight/
... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier
    
    
More information about the clue-tech
mailing list