Mask Modifiers
Mask modifiers can be used with the /select, /andselect, and /hide commands to limit the selection based on the size or age of an item.
:size
Apply a selection modifier to an item based on a size range
Value supports the use of the following suffixes B=byte, M=megabyte, G=gigabyte.
:age
Apply a selection modifier to an item based on a date range
Value support the following suffixes S=second, M=minute, H=hour, D=day, Y=year.
The value must include a suffix and you can only use a single suffix.
Match items with a size of 10MB or less:
:size-10M |
Match items with a size of at least 5MB and equal or less than 10MB:
:size+5M-10M |
Match items where the modified date is equal or less than 1 day from now:
:age-1d |
Match items where the modified date is equal or more than 12 hours from now:
:age+12h |
Match items where the modified date is at least 1 day but no more than 30 days:
:age+1d-30d |
Here's a complete example of using a token modifier with the /select command
Select files (-f) that match the mask (*.log) that were modified at least 31 days or more ago:
/select -f :age+31d *.log |