Find all files in the current directory (and its subdirectories) with the extension .sh, and for each of those files, execute the command to replace all tab characters with four spaces.
find ./ -name '*.sh' -exec sed -i '' 's/\t/    /g' {} \;