Find all files with the extension .txt in the current directory and execute the command to replace the string "bar" with "baz" in all lines containing "foo".
`find . -name '*.txt' -exec sed -i -e '/foo/s/bar/baz/' {} \;`