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