Using get -latest and -filemask= ?

Advertisement

Mk_Script
Joined:
Posts:
2
Location:
Home

Using get -latest and -filemask= ?

HI All

Sorry bit of a noob question but how do use both -filemask and -latest in a get command?
So I have some .csv in a remote directory and there are 3 different version to the csv with historic copies. I am only interesting the latest of one version

for example
prd_1234_01.csv
prd_1234_02.csv
prd_4567_01.csv
prd_4567_02.csv
prd_8901_01.csv
prd_8901_02.csv
So in my query I just want to download
prd_1234_02.csv
get -latest -filemask=*1234* /remote/ \local
The command runs but it downloads
prd_1234_01.csv
prd_1234_02.csv
Thanks in advance.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum