FMCorz
7/11/2016 - 3:13 AM

Find and replace in files

Find and replace in files

Find all the .php files in the current directory and below, and replace FROM with TO.

find . -type f -iname '*.php' -exec sed -i 's/FROM/TO/g' {}  \;