![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2002
Location: rain city
Posts: 222
|
![]() I need to search and replace several links across serveral domains. What is the easist/fastest way to do this?
Thanks
__________________
345682839 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
perl or php
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
__________________
https://www.flow.page/savethechildren |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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;'
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |