Find all directories with the extension ".sh" that have permissions of 777 and were modified within the last day, and execute a rsync command to copy them to the ~/tmp directory and remove the source files.
find / -perm +777 -type d -name "*.sh" -mtime -1 -exec rsync --remove-source-files {} ~/tmp \;