Find all files in the current directory (denoted by ~) that do not end with ".sh" and execute the command "sed -i 's/[A-Z]/\L&\E/g' {}" on each of them.
find ~ -not -name "*.sh" -exec sed -i 's/[A-Z]/\L&\E/g' {} \;