Filemask on mv command

Advertisement

Colinsp
Guest

Filemask on mv command

Hi,

I'm trying to move online files from one dir to the archive in that dir. But I cant move them because of the mask. Also when I'm trying without the mask. It's giving me back that he can't put the archive dir into the archive dir. Which of course is understandable.
I've checked if I'm in the newest update.

I'm having issues with the mv command:
mv -filemask=|*/ /maindir/seconddir/*.* /maindir/seconddir/archive/
In my output I'm getting the message:
unknown switch 'filemask'.
Please help!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,276
Location:
Prague, Czechia

Re: Filemask on mv command

The mv command does not support -filemask.
Is there a way you can distinguish files from folders by inclusion mask? For example do your file have specific extension[s]?
Otherwise you would have to use a more powerful script, like PowerShell with use of WinSCP .NET assembly.
Or place your archive folder elsewhere (out of the seconddir).

Reply with quote

Advertisement

You can post new topics in this forum