find . -name '* *' | while read file;
do
target=Echo "$file" | sed 's/ /_/g';
echo "Renaming '$file' to '$target'";
mv "$file" "$target";
done; 

