Search the entire file system for files with the extension ".txt" and execute the command "sed -i 's/expression/replacement/g' {}" on each of them.
find / -name '*.txt' -exec sed -i 's/expression/replacement/g' {} \;