[CLUE-Tech] removing spaces from filenames

Angelo Bertolli angelo at freeshell.org
Sat May 15 12:35:05 MDT 2004


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.

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...

Angelo




More information about the clue-tech mailing list