Find all files with the extension ".sh" in the current directory and its subdirectories, and execute the command "sed -i -e 's/\$1/\"\$1\"/g' {}" on each of them.
find ~ -iname '*.sh' -exec sed -i -e 's/\$1/\"\$1\"/g' {} \;