Hi,
I'm new to BRU but have used it for several tasks successfully in the project I'm working on. This next part I'm at a loss for how to do it. I'm somewhat tech savvy but not to this level. Any help would be so appreciated!
I have thousands of files in the following format and need to change them. A little background... These are US patent files. For any given patent there will be anywhere between 1 and 12 image files. I have each patent's files in it's own directory labeled with the patent number in it's final format. It's the individual image files that I need to reformat their file names. If you look at the final file name format example below the patent number is 36399. The -001 suffix is the image number for that patent. The patent number portion of the file name should always have 7 digits which includes leading zeros. What I was able to figure out was how to replace the US with us09 and then I got a little overwhelmed after that.
US36399_1 Starting file name format
us0d0036399-001 Final file name format
Steps:
1. Replace US with us0d (I've got that figured out.)
2. Insert the correct amount of leading zeros to equal 7 digits.
3. Replace the _1 with the corresponding suffix -001, -002, -003, etc.
Step 1 above I'm comfortable with. The other 2 I'm pretty lost on. I thought if I replaced US with us0d- (with a hyphen) it would separate out the 7 digits to work with the leading zeros. But I'm really not sure where to go from there trying to figure out steps 2 & 3 above.
Caveat: I'm recovering from a very slight brain injury so I get overwhelmed when looking at really complicated screens like how the BRU screen looks. If I have a little guidance it helps a lot. It's focus and concentration that I have the most issues with. The more I work at things the better I get. This is a huge project that I can work with but this file naming issue is a really big speed bump for me and is holding up the rest of the project. I'd be so grateful for any help!
Thank you!