Sort files by even or odd numbers

Bulk Rename Utility How-To's

Sort files by even or odd numbers

Postby giumail.mail » Thu Jan 23, 2025 10:25 pm

Hello everyone,
this has probably been asked several times but I'm not understanding properly :(

I need Bulk Rename to help me sort files in a folder, by even or odd numbers, to rename them afterwards. Is there a easy way to do that sorting?

Thanks for helping :idea:
Giulia
giumail.mail
 
Posts: 1
Joined: Thu Jan 23, 2025 10:19 pm

Re: Sort files by even or odd numbers

Postby TheGhost78 » Fri Jan 24, 2025 12:21 pm

If the files are in number order:

Numbering (10):

Mode: Prefix
At: 0
Start: 0
Incr.: 1
Pad: 2
Break: 1
Type: Base 2 (Binary)

Add a separator if you want in Sep., e.g.: - .
TheGhost78
 
Posts: 78
Joined: Fri Jul 19, 2024 11:25 am

Re: Sort files by even or odd numbers

Postby TheGhost78 » Fri Jan 24, 2025 3:52 pm

* If the files are in number order and there are no skips, e.g.
1
2
3
4
5
6
7
8
9
10
etc
TheGhost78
 
Posts: 78
Joined: Fri Jul 19, 2024 11:25 am

Re: Sort files by even or odd numbers

Postby TheGhost78 » Fri Jan 24, 2025 5:42 pm

An alternative method, that requires a bit more work, would be to copy the last digit of your number to the start of the filename. That way you will have reduced it to 10 groups of numbers all starting with a numeral 0-9. Then you a much more manageable set where you can more easily select all the odds and prefix the word 'Odd', for example, then select all the even numbers and prefix those with the word 'Even'.

Example:
Filename 01
Filename 02
Filename 09
Filename 13
Filename 24
Filename 37
Filename 46
Filename 54
Filename 63
Filename 76

Using More/Copy Parts (6):
Copy last n 1 To start with a space in Sep.

Becomes:
1 Filename 01
2 Filename 02
9 Filename 09
3 Filename 13
4 Filename 24
7 Filename 37
6 Filename 46
4 Filename 54
3 Filename 63
6 Filename 76

Re-sort on name:
1 Filename 01
2 Filename 02
3 Filename 13
3 Filename 63
4 Filename 24
4 Filename 54
6 Filename 46
6 Filename 76
7 Filename 37
9 Filename 09
TheGhost78
 
Posts: 78
Joined: Fri Jul 19, 2024 11:25 am


Return to How-To