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
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 08-19-2009, 09:28 PM   #1
96ukssob
So Fucking Banananananas
 
96ukssob's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: If I was in your ass you'd know it
Posts: 12,991
Find and replace through FTP?

I have a ton of files that I need to do a find and replace with and I'm trying to find an easier/less time consuming way of doing so.

Anyone know any tools to do so? Im not that familiar with SSH, but heard there is a way to do it that way. any suggestions?
__________________
Email: Clicky on Me
96ukssob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2009, 09:32 PM   #2
mlove
the guy
 
mlove's Avatar
 
Industry Role:
Join Date: Apr 2005
Posts: 764
Can't do it in FTP, but if you run this in ssh, it will work as long as you have the 'replace' application installed

find /home/yourusername/path/to/your/files/ -exec replace "original string" "new string" -- {} \;

Otherwise, you can use sed:

find /home/yourusername/path/to/your/files/ -exec sed -i "s/original string/new string/" {} \;
__________________
If you won't feel as good, I won't feel as cheap.
mlove is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-19-2009, 09:49 PM   #3
dready
Confirmed User
 
dready's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Toronto, ON
Posts: 5,247
You can do it with CuteFTP's built it editor... kinda. You have to open all the files you want to search, have it do the replace, and then it will resave the files that you changed. It should work well if there aren't too many to go through. More than a couple dozen and I'd have someone do it on the server for you.
__________________
ICQ: 91139591
dready 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



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.