Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Mk_Script

Please Ignore – should have RTFM properly lol
get -latest -filemask=*1234*.csv /remote/*.*  local\
Mk_Script

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.