Mind Mining Medium

Find & Replace in Linux/Mac

This is a quick one liner to find and replace strings in *nix. You can use this in your Mac terminal or Unix prompt.

In Bash:

find . -type f -exec sed -i 's/FIND/REPLACE/g' {} \;

Example:

find . -type f -exec sed -i 's/signin/login/g' {} \;