I want to select only odd-numbered files within the folder.

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
perfect134
Posts: 3
Joined: Thu Nov 23, 2023 7:05 pm

I want to select only odd-numbered files within the folder.

Post by perfect134 »

There are approximately 50,000 jpg files in the folder.

I want to separate odd and even numbers among the files and move them to another folder.

So I want to search for odd numbers only within the folder, and I want to know how.

I don't know the computer very well, so I used the method in the help, etc., but it doesn't seem to work very well.


C:\Users\AP\Downloads\1\
If you only search, all files in the folder can be searched

C:\Users\AP\Downloads\1\ regex:1$
If you search for it, you can only search for folder 1
The files inside cannot be retrieved.

1\ If you name the file
File name 00001... The file name 50000 appears.

But if you do 1\file name regex:1$, nothing comes out.

And even if you search under certain conditions
At the same time that all files are retrieved
It is searched in a block-processed manner.

For example, when all three sets(00001, 00002, 00003) are searched, only 1,3 is blocked thickly, but I want to search in a way that excludes search 00002 at all.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: I want to select only odd-numbered files within the folder.

Post by void »

Could you please give an example full path and name.

Are you trying to match odd numbers in the parent folder name or the file name?

For example:

C:\Users\AP\Downloads\1\01234.jpg



For odd parent folder names, please try the following search:

C:\Users\AP\Downloads\ 1\ | 3\ | 5\ | 7\ | 9\



For odd file names, please try the following search:

C:\Users\AP\Downloads\ regex:\d\d\d\d[13579]

\d = match a single digit
[13579] = match an odd number



If file names are not using 5 digits, please try the following search:
C:\Users\AP\Downloads\ regex:[13579]\D

\D = match a character that is NOT a digit.
perfect134
Posts: 3
Joined: Thu Nov 23, 2023 7:05 pm

Re: I want to select only odd-numbered files within the folder.

Post by perfect134 »

For odd file names, please try the following search:

C:\Users\AP\Downloads\ regex:\d\d\d\d[13579]

\d = match a single digit
[13579] = match an odd number


The problem has been solved through the method you told me.

The fundamental problem was dividing the file.

The use of [13579] was found on the web
\d\d\d\d was not found.

Thank you for solving the problem.

Oh, and I don't know why, but it didn't apply right away. I think there's also an index problem.
At first, I thought it was a name problem, so I changed the file and folder name only to a simple number, but when I change it to the original name again, I recognize it again.
Post Reply