WinSCP: Text search on remote files

Max_Salah picture Max_Salah · Jan 15, 2013 · Viewed 14.1k times · Source

I use WinSCP to get access on the remote files of our project. How can I search for some text/words in all remote files/directories using WinSCP?

Answer

Martin Prikryl picture Martin Prikryl · Apr 3, 2013

WinSCP does not support text searching in its primary GUI.


But there's a built-in extension to Search recursively for text in remote directory.

This is a universal solution that works with SFTP, even if the server does not allow shell access, or even for FTP or WebDAV sessions.

enter image description here


Alternatively, you may be able to make use of WinSCP console window (Commands > Open Terminal) to launch the search from the command-line.

grep -r "text_to_search_for" *

This of course requires a shell access to the server.