| Liam Delahunty: Home | Tips | Web | Contact |
|---|
|
Recommended laptop
under £500. Think I deserve a present? See my Amazon Wish List |
How to do a search and replace over multiple filesYou 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
Example I had the following style sheet in a section: <link rel="stylesheet" type="text/css" href="../includes/style.css"> |