Rename files in current directory

#!/bin/bash
#
find . *" "* -type d -print |while read file
do
target=$(echo $file | sed -e "s: :_:g")
mv "$file" "$target"
done

cool that removes all the while spaces