current date 2018 -10 -31
In my RemoteFolder directory, I had the below list of files. I am trying to pull yesterday's file (i.e 2018-10-30)
Test_20181031000000_ual
TestProfile_201830722000000_full
Test2_2018103000000_ual2
Test2_2018103000000_usage
Test2_2018102900000_ual2
TesI2_2018102900000_usage
i wanted to pull files having yesterday's date in their filename. i used the below sftp logic, I am able to pull with current date . please suggest how to proceed. Thanks in advance
sftp ${UserName}@${HostName} .. get *$(date +%Y%m%d)*