Note: Do not run this command on a folder including a git repo - changes to .git could corrupt your get index.

For example to replace an IP on multiple files:

find /tmp/path -type f -exec sed -i '' 's/' {} +

On BSD, MAC by passing an empty string to sed’s -i args will create no backup

perl -pi -e

perl -pi -e 's/replace_this/with_this/"

This is useful when you don’t want to change the file ending like in sed that adds an \n ad the end of the file