# https://stackoverflow.com/questions/6758963/find-and-replace-with-sed-in-directory-and-sub-directories find ./ -type f -exec sed -i -e 's/apple/orange/g' {} \;