Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Probably not, just need to clear up a question between me and a colleague.

Wondering if there's an FTP tool that will search for a phrase within all the files in a directory.

share|improve this question
    
+1 I wondered this too. The answers below make sense too. –  therobyouknow Dec 21 '11 at 16:20

3 Answers 3

up vote 3 down vote accepted

If you have more than just FTP access then it is possible with WinSCP and grep:

http://winscp.net/eng/docs/remote_command

http://winscp.net/eng/docs/custom_commands#search_text

share|improve this answer
    
+1 worth knowing. –  therobyouknow Dec 21 '11 at 16:20

Not via FTP, no. FTP does not have a search or grep function for files, it's simply for transferring.

share|improve this answer

You can script this in PowerShell using WinSCP .NET assembly:

For complete code, see Search recursively for text in remote directory / Grep files over SFTP/FTP protocol.


If you have a shell access, you can search remotely (as an answer by @Shevek already pointed out).
See Searching for a text/string within a directory.

But that's not FTP-based solution anymore.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.