# Select every other file

**URL:** <https://resource.dopus.com/t/select-every-other-file/54897>\
**Category:** Help & Support\
**Created:** [March 12, 2025, 7:52pm UTC](https://resource.dopus.com/t/select-every-other-file/54897 "2025-03-12T19:52:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![homunculus](https://resource.dopus.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homunculus](https://resource.dopus.com/u/homunculus)\
**Post date:** [March 12, 2025, 7:52pm UTC](https://resource.dopus.com/t/select-every-other-file/54897/1 "2025-03-12T19:52:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [March 12, 2025, 8:00pm UTC](https://resource.dopus.com/t/select-every-other-file/54897/2 "2025-03-12T20:00:14Z")

</div>

This would select all the files whose name ends in an even number followed by `.jpg`, and deselect everything else:

```plaintext
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`.)

---

<div class="post-metadata">

**Author:** ![homunculus](https://resource.dopus.com/letter_avatar_proxy/v4/letter/h/838e76/32.png) [@homunculus](https://resource.dopus.com/u/homunculus)\
**Post date:** [March 12, 2025, 8:13pm UTC](https://resource.dopus.com/t/select-every-other-file/54897/3 "2025-03-12T20:13:26Z")

</div>

Thanks, I'll try it.

---

<div class="post-metadata">

**Author:** ![galaxyhub](https://resource.dopus.com/user_avatar/resource.dopus.com/galaxyhub/32/42793_2.png) [@galaxyhub](https://resource.dopus.com/u/galaxyhub)\
**Post date:** [March 12, 2025, 8:48pm UTC](https://resource.dopus.com/t/select-every-other-file/54897/4 "2025-03-12T20:48:53Z")

</div>

This will do what you ask and more ...  
[Command: SelectEx (extended Select command) - Buttons/Scripts - Directory Opus Resource Centre](https://resource.dopus.com/t/command-selectex-extended-select-command/20517)
