I needed to remove spaces from a whole list of files in a directory. A short bash script took care of it easy:
$ for file in *; do > newFile=$(echo $file | tr ' ' _) > mv "$file" $newFile > done
To do this recursively:
$ for file in `find .`; do > newFile=$(echo $file | tr ' ' _) > mv "$file" $newFile > done


No Comments Posted.