search a for a string in a list of files on FTP server

SilverNodashi

Expert Member
Joined
Oct 12, 2007
Messages
3,340
Reaction score
49
Location
Johannesburg, South Africa
Hi,

Does anyone know of a (preferably) free tool to search (and possibly replace) for any given string through a bunch files & folder on an FTP server, without fist having to download ALL the files from the server.

I know Dreamweaver can do this but I don't want to purchase the package just for this functionality and a quick google search didn't reveal anything useful.

I know I can do this via SSH, but don't have SSH access to this particular server in question
 
Hi,

Does anyone know of a (preferably) free tool to search (and possibly replace) for any given string through a bunch files & folder on an FTP server, without fist having to download ALL the files from the server.

I know Dreamweaver can do this but I don't want to purchase the package just for this functionality and a quick google search didn't reveal anything useful.

I know I can do this via SSH, but don't have SSH access to this particular server in question

I might be new to this, but if you have the FTP info, wouldn't the FTP access credentials wouldn't the SSH access be the same? Or have they configured it otherwise?
 
I might be new to this, but if you have the FTP info, wouldn't the FTP access credentials wouldn't the SSH access be the same? Or have they configured it otherwise?

No, configuring FTP is different to SSH so the same credentials won't work. Its also uncommon to be given SSH access.
 
Hi,

Does anyone know of a (preferably) free tool to search (and possibly replace) for any given string through a bunch files & folder on an FTP server, without fist having to download ALL the files from the server.

I know Dreamweaver can do this but I don't want to purchase the package just for this functionality and a quick google search didn't reveal anything useful.

I know I can do this via SSH, but don't have SSH access to this particular server in question

Dreamweaver would still have to download the files to achieve this. Grep, sed, awk are all commands that cannot be execute via FTP. You could use lftp but you would still be downloading and uploading files.
 
So you want to search the contents of the files, not the filenames?

Pretty sure thats impossible. Essentially you need to execute a search on either the server itself, or your box. Your box would mean downloading it. Server would require the ability to run some kind of command/code since FTP does not provide for this.
 
Hi,

Does anyone know of a (preferably) free tool to search (and possibly replace) for any given string through a bunch files & folder on an FTP server, without fist having to download ALL the files from the server.

I know Dreamweaver can do this but I don't want to purchase the package just for this functionality and a quick google search didn't reveal anything useful.

I know I can do this via SSH, but don't have SSH access to this particular server in question

As far as I know FTP provides no way of searching the contents of a file on the server. Dreamweaver either creates a seperate SSH connection or it downloads to a temp area and searches that. I know some FTP clients do this.
 
ok, thanx guys. I didn't want to download 20GB+ content to search for a few string of "hacked code", but I guess I have no other way no. The hosting company in question isn't very helpful and I hoped todo this a bit easier than downloading the whole account. Anyhow......
 
Top
Sign up to the MyBroadband newsletter
X