Find all files with the extension ".sh" in the directory of the temporary file created by the command "mktemp -u" and change the permissions to 700 for each of them.
find $(dirname $(mktemp -u)) -name "*.sh" -exec chmod 700 {} \;