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

Pavel

Re: -filemask for rm & rmdir

Ok, I see two ways: first is to add a full support for a directory mask semantic in rm command, or second is to add a masks support for rmdir. The first in my opinion is more correctly, and the rmdir command is redundant.
martin

Re: -filemask for rm & rmdir

No the */ has different semantics here, than in a file mask.

But */<2016-01-01 works and will delete even the old folders (but files too).
pavel

Re: -filemask for rm & rmdir

Does rm supports a directory mask?
Something like rm */<2016-01-01 (this comman fails)
martin

Re: -filemask for rm & rmdir

The rmdir does not support masks. But you can use the rm to delete directories too.
Pavel

Re: -filemask for rm & rmdir

Pavel wrote:

I need something like rm *.7z<2016-10-28

...and it works!
Ok, and how to work with directories?
This is fails: rmdir *<2016-10-28
Pavel

Re: -filemask for rm & rmdir

I need something like rm *.7z<2016-10-28
Pavel

-filemask for rm & rmdir

Hi!
Scripting functionality will be more complete if you add an -filemask option for rm and rmdir commands.
Thanks in advance!