![]() |
![]() |
![]() |
||||
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 |
So Fucking Banananananas
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
the guy
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |