Find all files with the extension ".sh" in the current directory and its subdirectories up to 3 levels deep, and then search for lines that do not start with "#" in those files.
find ~ -maxdepth 3 -name '*.sh' | xargs grep -v '^#'