Find all files with the extension .csv in the directory /foo and execute the command sed to replace all occurrences of the word 'foo' with the word 'bar' in each file.
find /foo -name '*.csv' -exec sed -i 's/foo/bar/g' {} \;