GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Serever Side Search And Replace? (https://gfy.com/showthread.php?t=182579)

save11 10-04-2003 05:21 PM

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

Lane 10-04-2003 05:22 PM

perl or php

GFED 10-04-2003 05:29 PM

http://www.gofuckyourself.com/showth...hreadid=180958

Penthouse_mike 10-04-2003 05:42 PM

find . -type f |xargs perl ?i.bak ?p ?e 's/old/new/g;'

swedguy 10-04-2003 06:02 PM

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