Numering if name is the same and then back to 0

Bulk Rename Utility How-To's

Numering if name is the same and then back to 0

Postby Razyel95 » Fri Mar 10, 2023 1:17 am

Hello everybody I want to ask how to increase the numbering file, while the filename is the same increase the number then back to 0 Example:

90000_TEXT0.txt
90000_TEXT1.txt
90001_TEXT0.txt
90001_TEXT1.txt
90002_TEXT0.txt
90002_TEXT1.txt
90002_TEXT2.txt
90002_TEXT3.txt

And then eventually continue with others files. Thanks for read and I will appreciate any tip or idea. Blessings.
Razyel95
 
Posts: 7
Joined: Tue Nov 09, 2021 2:44 am

Re: Numering if name is the same and then back to 0

Postby Admin » Fri Mar 10, 2023 6:22 am

Hi, what are the names, before and after?
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Numering if name is the same and then back to 0

Postby Razyel95 » Fri Mar 10, 2023 4:40 pm

Hello thanks for reply, it's like this:

Before:

90000_TEXT.txt
90000_TEXT.txt
90001_TEXT.txt
90001_TEXT.txt
90002_TEXT.txt
90002_TEXT.txt
90002_TEXT.txt
90002_TEXT.txt

After:

90000_TEXT0.txt
90000_TEXT1.txt
90001_TEXT0.txt
90001_TEXT1.txt
90002_TEXT0.txt
90002_TEXT1.txt
90002_TEXT2.txt
90002_TEXT3.txt
Razyel95
 
Posts: 7
Joined: Tue Nov 09, 2021 2:44 am

Re: Numering if name is the same and then back to 0

Postby Admin » Sat Mar 11, 2023 1:44 am

90000_TEXT.txt
90000_TEXT.txt


Can''t have two files with the same file name in the same folder?
Or is this as result of partial renaming before numbering applied?
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Numering if name is the same and then back to 0

Postby Razyel95 » Sat Mar 11, 2023 4:44 pm

It's correct, those files have a number with date in the prefix but I don't want that info let me put the full original name.

Before:

20220906_032511_90000_TEXT.txt
20220906_032511_90000_TEXT.txt
20221014_012433_90001_TEXT.txt
20221014_012433_90001_TEXT.txt
20221014_012434_90002_TEXT.txt
20221014_012434_90002_TEXT.txt
20221014_012434_90002_TEXT.txt
20221014_012434_90002_TEXT.txt

After:

90000_TEXT0.txt
90000_TEXT1.txt
90001_TEXT0.txt
90001_TEXT1.txt
90002_TEXT0.txt
90002_TEXT1.txt
90002_TEXT2.txt
90002_TEXT3.txt
Razyel95
 
Posts: 7
Joined: Tue Nov 09, 2021 2:44 am

Re: Numering if name is the same and then back to 0

Postby Panchdara » Sat Mar 11, 2023 9:41 pm

20220906_032511_90000_TEXT.txt
20220906_032511_90000_TEXT.txt


Again, can't have 2 files with same name.
Panchdara
 
Posts: 67
Joined: Sat Jan 09, 2016 7:25 pm


Return to How-To