I have about 3000 numbered images (0001.jpg, 0002.jpg etc). I want to delete half of them, but evenly spread-out: i.e. every other file (not sequentially). Is there a way to select odd/even-numbered files?
This would select all the files whose name ends in an even number followed by .jpg
, and deselect everything else:
Select *[02468].jpg TYPE=files DESELECTNOMATCH DESELECTOTHERTYPE
(If it's a one-off, you can also do similar in the UI via Edit > Select By Pattern and use the same wildcard *[02468].jpg
.)
1 Like
Thanks, I'll try it.
This will do what you ask and more ...
Command: SelectEx (extended Select command) - Buttons/Scripts - Directory Opus Resource Centre