help with filemask

Advertisement

Ettap
Joined:
Posts:
4
Location:
Helsinki

help with filemask

Hi
i need to get all files created on the day the scrip is run and move them to another place, i need to exclude a file with a name of TK and move it to another folder. i get the files of the day with
-filemask=*>1D
but trying to add a exclude is stumping me at the moment

Reply with quote

Advertisement

Ettap
Joined:
Posts:
4
Location:
Helsinki

RE: help with filemask

So i managed to fix this by having two get functions.

first i get the file i want by its self with
-filemask=TK*>1D

and then get the rest of them with
-filemask=*>1D|TK*

Reply with quote

Ettap

RE: help with filemask

the real problem here was that filemask does not understand spaces. so if you copy the search from winscp with the ask you need, its going to give you an error

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: RE: help with filemask

Ettap wrote:

the real problem here was that filemask does not understand spaces. so if you copy the search from winscp with the ask you need, its going to give you an error
You can use spaces in file mask, if you quote the file mask. Though I do not understand, what you mean by "copy the search".

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum