I am looking for a way to search within all files / directories on a remote ftp server for a certain line of text.
So far I am using Cygwin
to make the ftp connection using lftp
.
The furthest I've got is using the command:
ls -l | grep pattern
...while in lftp mode.
However, that simply looks over the file names returned for the pattern. I want to search within the files for the pattern.
Perhaps there is a software package that allows for this already.
Any ideas on how to do this?
To find files or subdirectories in remote directory1 go to Commands > Find Files. You will be prompted with Find dialog to specify filter for finding. The results of search will appear in the same dialog.
If you need to find a particular file on the local machine or remote server: Connect to the server in FileZilla Pro. Alternatively, press the F3 key. The File search window will be displayed.
WinSCP does not support grep or find commands.
You'd have to either have:
There are some alternatives over on askubuntu.com that might help, but unless you can get shell / SSH
access on the remote server, everything's going to be a variant of download it all and search it locally.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With