Removing spaces from filenames
From thelinuxwiki
Remove all spaces from all files in current directory:
Shell one-liner
IFS=$'\n';for f in `find .`; do file=$(echo $f | tr [:blank:] '_'); [ -e $f ] && [ ! -e $file ] && mv "$f" $file;done;unset IFS Script IFS=$'\n' for f in `find .`; do file=$(echo $f | tr [:blank:] '_') [ -e $f ] && [ ! -e $file ] && mv "$f" $file done unset IFS