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?

Edit
Report