Find all files with the extension ".sh" in a maximum of 4 levels of subdirectories, and execute the command "sed -i 's/^#.*//g' {} +" on each of them.
find -maxdepth 4 -type f -name '*.sh' -exec sed -i 's/^#.*//g' {} +