Find all files and directories with any name and extension, then replace the beginning of each line with "mv \"", and replace the end of each line with "\"", then execute the command with the -x option.
find -name '*.*' | sed -e 's/^/mv \"/' -e 's/$/\"/' | sh -x