Search the entire file system starting from the root directory for any file name with any extension and execute the command "sed -i s/foo/bar/" on each file found.
find / -iname '*.*' -prune -exec sed -i s/foo/bar/ {} \;