Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: How to load only lines with a specific ID from a file on an SFTP server?

There's no way to do that using SFTP protocol.
You would need to use appropriate shell commands (if you have a shell access), like grep, using SSH terminal client.
bealefay

How to load only lines with a specific ID from a file on an SFTP server?

I created a bat file that runs a WinSCP script to download a log file (response log) from a remote server.
The log file is explicitly loaded as is (responses from all requests).
How can I limit the download of a log file specific to my request? My request has a unique identifier. How can I truncate a response specific to my unique identifier?
The script in my bat file is below:
winscp.com/command ^

    "open sftp://xxx.com/ -hostkey=*" "get /var/log/jboss_sit/suFile.log" "exit" ^