2
I am trying to print file names along with path from SFTP server to other location. I am able to get file names but not path. Below is the code that I have used:
echo "ls *.gpg" | sftp xfer@nsb.abc.com:/SXMPMX/INBOUND/FORDCOI_CONT_RESP > $Path/sample.txt
Please let me know is there any way to solve my problem.
In local i can able to print file name with path by using readlink -f *.txt command. i wanted to print the file name and path from SFTP. – Midhun – 2018-02-08T08:49:31.777