I want to pull a single file from multiple similar named file using sftp.
Eg. if my remote server is having below files,
file_0722_005.dat
file_0722_020.dat
file_0722_033.dat
file_0722_0022.dat
I just want to pull any one among them.
In unix I can go for
ls file_0722_*|head -1
But in sftp head/tail won't work.
Please suggest how can this be done!
head
remotely via ssh?