![]() |
Serever Side Search And Replace?
I need to search and replace several links across serveral domains. What is the easist/fastest way to do this?
Thanks |
perl or php
|
|
find . -type f |xargs perl ?i.bak ?p ?e 's/old/new/g;'
|
http://www.sponsororganizer.com/Free...s/s_and_r.html
This one is easier if you only have one link to change: find . \( -name '*.html' -o -name '*.php' -o -name '*.htm' \) -exec perl -pi -e 's/old_link_code/new_link_code/g' {} \; But the top one is heck of a lot faster. |
All times are GMT -7. The time now is 09:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123