Thread: .htaccess
View Single Post
Old 07-01-2002, 05:21 PM  
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
Quote:
Originally posted by swedguy
Log on to your server with telnet or ssh.

find /home/bubba/domain.com -name '*.html' -exec perl -pi -e 's/http:\/\/www.yahoo.com/http:\/\/www.google.com/g' {} \;

Change /home/bubba/domain.com to the domain dir you want to mess around in.

If it's a linkingcode you're about to change, you need to escape (put an \ in front of it) certain characters: ? & /

Create a test dir with couple of test files in it to test on first.


btw, I do NOT give ANY guarantees

I didn't really understand half of it, but I it worked

whats "-e" "-pi" "{}" for?
__________________
7

Last edited by kenny; 07-01-2002 at 05:30 PM..
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote