Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-04-2003, 05:21 PM   #1
save11
Confirmed User
 
Join Date: Nov 2002
Location: rain city
Posts: 222
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
__________________
345682839
save11 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2003, 05:22 PM   #2
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
perl or php
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2003, 05:29 PM   #3
GFED
Confirmed User
 
GFED's Avatar
 
Industry Role:
Join Date: May 2002
Posts: 8,120
http://www.gofuckyourself.com/showth...hreadid=180958
GFED is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2003, 05:42 PM   #4
Penthouse_mike
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Silicon Valley
Posts: 317
find . -type f |xargs perl ?i.bak ?p ?e 's/old/new/g;'
Penthouse_mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-04-2003, 06:02 PM   #5
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
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.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.