i made a little script under bash to rename spaces with "_" oder rename what you want...
##Script for Searching Directorys and Files with a "SPACE" in the name or directory.
##Dont forget do navigate in the right PATH!!!
##Input file seperator definition
##Find all directorys that have a space in the name and save the list into varibale FILES
FILES=`find . -type f -iname '* *' -printf '%p+'`
##Find all files that have a space in the name and save the list into varibale FILES
FILES=`find . -iname '* *' -printf '%p+'`
##Renaming the Spaces with "_"
for file in $FILES; do nfname=`echo $file|sed -e 's! !_!g'`; mv $file $nfname; done
For a single directory, I use the following to replace all prohibited characters with underscore:
for F in *; do mv "$F" "$(echo $F | sed 's/[^a-zA-Z0-9_\-\.]/_/g')"; done;
thx for sharing! quick and useful