How to do a search and replace over multiple files

You could also use find and sed, but I find that this little line of perl works nicely. perl -pi -w -e ‘s/search/replace/g;’ *.php -e means execute the following line of code. -i means edit in-place -w write warnings -p loop Example I had the following style sheet in a section: <link rel=”stylesheet” type=”text/css” href=”../includes/style.css”>… Continue reading How to do a search and replace over multiple files