Find all files in the current directory (and its subdirectories) with the extension ".sh" and execute the command "sed -i 's/{}/'$(openssl rand -base64 32)'/g'" on each of them.
find ./ -type f -name "*.sh" -exec sed -i 's/{}/'$(openssl rand -base64 32)'/g' \;