Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Results 1 to 8 of 8

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

  1. #1
    Grandmaster
    Join Date
    Oct 2007
    Location
    Johannesburg, South Africa
    Posts
    2,114
    Blog Entries
    1

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

    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
    SoftDux - Windows & Linux Website Hosting, Virtual Private Servers, Domain Registrations.
    Help a great cause

  2. #2
    Senior Member Clayman's Avatar
    Join Date
    Sep 2005
    Location
    The Boxed Mountain
    Posts
    110

    Default

    Quote Originally Posted by SoftDux-Rudi View Post
    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 often say to myself, "I can't believe that cloning machine worked!"

  3. #3

    Default

    You should be able to do that with a PHP script.. Here is one that might work.. Might need some modifications...

    http://www.designerstalk.com/forums/...ring-file.html

  4. #4
    Super Grandmaster cbrunsdonza's Avatar
    Join Date
    Jun 2008
    Location
    Somerset West
    Posts
    9,846

    Default

    Quote Originally Posted by Clayman View Post
    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.
    Overflow error in /dev/null

  5. #5
    Super Grandmaster cbrunsdonza's Avatar
    Join Date
    Jun 2008
    Location
    Somerset West
    Posts
    9,846

    Default

    Quote Originally Posted by SoftDux-Rudi View Post
    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.
    Overflow error in /dev/null

  6. #6

    Default

    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.
    Quote Originally Posted by Picard View Post
    No need to speak the truth. Few people are interested in it.

  7. #7
    Super Grandmaster
    Join Date
    May 2005
    Location
    Kent, UK
    Posts
    5,106

    Default

    Quote Originally Posted by SoftDux-Rudi View Post
    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.

  8. #8
    Grandmaster
    Join Date
    Oct 2007
    Location
    Johannesburg, South Africa
    Posts
    2,114
    Blog Entries
    1

    Default

    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......
    SoftDux - Windows & Linux Website Hosting, Virtual Private Servers, Domain Registrations.
    Help a great cause

Similar Threads

  1. Search for Files On Server
    By Amphibious in forum Apple Mac, iPad and iPhone
    Replies: 3
    Last Post: 06-11-2009, 08:01 PM
  2. Search for Files On Server Using Mac OS X
    By Amphibious in forum Apple Mac, iPad and iPhone
    Replies: 0
    Last Post: 06-11-2009, 08:24 AM
  3. Strange String found on server terminal
    By Jimmeh in forum Linux
    Replies: 5
    Last Post: 11-05-2009, 09:44 AM
  4. List of files in txt
    By Dolby in forum PC Hardware and Gadgets
    Replies: 8
    Last Post: 17-04-2009, 11:57 AM
  5. Searching for a string inside multiple files
    By lcbxx in forum Software and Web Development
    Replies: 12
    Last Post: 06-11-2008, 08:44 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •