View Single Post
Old 02-14-2017, 06:52 AM  
robwod
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Posts: 2,539
It's not that big of a deal. Just login to the server and do a simple find and replace. The basic syntax is:

Code:
grep -rl "oldstring" . |xargs sed -i -e 's/oldstring/newstring/'
And example might be:
Code:
grep -rl "http://affiliatelink.com/track/affiliatecode/" . |xargs sed -i -e 's/http:\/\/affiliatelink\.com\/track\/affiliatecode\//https:\/\/affiliatelink\.com\/track\/affiliatecode\/'
I just did that quickly so I may have missed an escaped character. You simply need to use the first example, and then escape any special characters, including periods and slashes.
__________________
NSFW
robwod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote