I tried searching for similar command in ncftp (actually this is the only terminal ftp client I used) and I didn't find it.
What's the way (if possible at all) to use grep command on remote server, to search for strings in files?
|
I tried searching for similar command in What's the way (if possible at all) to use |
||||
|
|
|
The standard ftp protocol does not allow it (You can check the list of commands). So you would have to download everything just to be able to grep on it. |
|||
|
|
|
You can use curlftpfs to mount remote ftp as local disk and manipulate with files as on your local machine. |
|||||||
|
|
You should localy mount the remote FTP directory to do this, however, be warned that all the files you grep will need to be downloaded for this operation. SSH into the remote machine and run grep through there, if possible, to save bandwidth. |
|||
|
|