Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Download last file from remote server with ssh
FILE_TO_DOWNLOAD=`ssh 'ls -Art /tmp/dir |tail -n 1'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.