Find all files with the extension .txt in the current directory and its subdirectories, and replace all hyphens (-) with underscores (_) in the file.
find ./ -iname '*.txt' -exec sed -i 's/\-/\_/g' {} \;