Search the /etc directory for any files with 'run' in the name, then execute the command 'sed -i -e 's/foo/bar/g' {} \;' on each of those files.
find /etc -name '*run*' -type f -exec sed -i -e 's/foo/bar/g' {} \;