Numbering 00

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Numbering 00

Postby Spark » Fri Jan 16, 2009 7:59 pm

Hello,

How numbering with :

01
02
03
04
05
06
etc ...

or

001
002
003
etc ...

And not :
1
2
3
4
5
etc ...

It's a problem ...

1
10
2
20
3
30
4
40

Thank (i'm frensh, sorry for my langage)
Spark
 
Posts: 2
Joined: Fri Jan 16, 2009 7:55 pm

Re: Numbering 00

Postby GMA » Fri Jan 16, 2009 8:38 pm

Hi, Spark:
Use the "Pad" option in the "Numbering (10)" field:

Pad = 2 ----> 01, 02, etc...
Pad = 3 ----> 001, 002, etc...

Best regards,
Gabriel.
GMA
 
Posts: 91
Joined: Sun Dec 02, 2007 1:30 pm
Location: Argentina

Re: Numbering 00

Postby Spark » Fri Jan 16, 2009 9:21 pm

o_O I had tested "pad" but I had not seen this change...

Sorry and Thans.
Spark
 
Posts: 2
Joined: Fri Jan 16, 2009 7:55 pm

Re: Numbering 00

Postby zappagoblin » Thu Feb 04, 2010 11:22 am

Hi, I'm a newbie too but I have the same problem. I have a directory with 3000 files numbered like this:

1.xx
2.xx
...
10.xx
11.xx
...

I would change the name of this files like this:

0001.xx
0002.xx
...
0999.xx
1000.xx and so on.

If I use the PAD system in numbering I get this:

0001.xx
...
00011.xx
...
000111.xx
...
0001000.xx

but in this mode I can't sort alphabetically my files (0001.xx, 00010.xx, 00011.xx insthead of 0001.xx, 0002.xx)
I hope my english is not so horrible to explain my problem, sorry...
Thanks a lot.
zappagoblin
 

Re: Numbering 00

Postby Stefan » Fri Feb 05, 2010 8:38 pm

zappagoblin wrote:Hi, I'm a newbie too but I have the same problem. I have a directory with 3000 files numbered like this:

1.xx
2.xx
...
10.xx
11.xx
...

I would change the name of this files like this:

0001.xx
0002.xx
...
0999.xx
1000.xx and so on.

If I use the PAD system in numbering I get this:

0001.xx
...
00011.xx
...
000111.xx
...
0001000.xx

but in this mode I can't sort alphabetically my files (0001.xx, 00010.xx, 00011.xx insthead of 0001.xx, 0002.xx)
I hope my english is not so horrible to explain my problem, sorry...
Thanks a lot.



Hi zappa, welcome.

Since you didn't provide real examples of how your file name looks, i can't provide you an valid solution.


FROM:
1.xx
2.xx
...
10.xx
11.xx
...
999.xx
1000.xx

TO:
0001.xx
0002.xx
...
0010.xx
0011.xx
...
0999.xx
1000.xx


Note:
Test this with test files first!
Select one or more files in the Name column to watch how the New Name will be.


Step 1)
Copy some of your files to an temp folder.
Open BRU and go inside this temp folder.
Use menu "Options > Sorting > Logical Sorting"
Make sure that your files are in an perfect order !!!
Don't do anything which could upset your order.

Step 2)
Remove old numbering.
Justing from your examples it seams we want to remove all leading digits till an . (dot) is reached.
So use:
RegEx(1)
Match: \d+\.(.+)
Repla: \1

Explanation:
\d+ => search one-or-more digits
\. => followed by an . dot
(.+) => then take the rest of the file name and "group" them with parentheses (...) to use that was is found here later as replacement by using \1

SO we get
FROM:
1.xx
99.xx
1000.xx
TO
xx
xx
xx
(I hope this xx is not your file extension? and there are some chars left to make the file name unique)

Step 3.)
Add an new numbering.
Numbering(10)
Mode [Prefix]
Pad [ 4] (or more if needed)
Sep.[ .] (an dot)

So we get
FROM:
xx
xx
xx
To:
0001.xx
0999.xx
1000.xx

As i have said, without real file names it's hard to guess what solution would fit to your issue.
But the basic rules here are:
1. order your files
2. remove old numbering
3. add new numbers

HTH? :D
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: Numbering 00

Postby zappagoblin » Tue Feb 09, 2010 11:45 am

Hi zappa, welcome.
Since you didn't provide real examples of how your file name looks, i can't provide you an valid solution.

Thanks a lot for your response. I provide to you the Real Example of my directory. I have a database of images named

1.jpg
2.jpg
...
9.jpg
10.jpg
...
99.jpg
100.jpg
...
and so on.

The 'xx' following the dot is my extension, in this case "jpg". I write 'xx' meaning 'don't care', sorry for misunderstanding.

I suspected that regular expressions was the right way to do this... I will try. I hope the request is much clear now, thanks again for your help and sorry for the long delay between my posts!
zappagoblin
 


Return to BRU Support


cron