If you want to retrieve a file without renaming it, sftp url-with-path-where-path-is-an-existing-file will copy that one file, non-interactively.
To rename or put a file (non-interactively), you need to do something like echo 'get/put remote-path local-path' | sftp ...
If you want to retrieve a file without renaming it, sftp url-with-path-where-path-is-an-existing-file will copy that one file, non-interactively.
To rename or put a file (non-interactively), you need to do something like echo 'get/put remote-path local-path' | sftp ...