Find all files in the current directory and its subdirectories, and for each of them, execute the command "sed -i 's/[A-Z]/&_/g' {}", where {} is the file name.
find ~ -type f -exec sed -i 's/[A-Z]/&_/g' {} +