There's no simple trick to make you one-line command to do what you ask for. See the link in my previous answer for a solution.
Hi,
I have a SFTP where files will be posted on a periodical basis. We do not know when they will be placed there. I want only the latest files among the files existing in SFTP.
I am using WinSCP with the below argument and can anybody modify it for me so that it picks the latest file among those files in SFTP?
Regards,
Kishore