More specifically.
the file name is broken down like this: a 3 digit ID. In this case 222 and then a 6 digit ID code in this case it's starting at 000100 and should increment by 1. The next one would be 000101. And the last 2 digits need to remain intact to the file as to which image it is 01, 02, 03, 04 etc. So the 222 will remain the same, as should the image numbers, is the 6 digit ID in the middle that needs to have a new sequencial order added to it. I hope this helps, and I appreciate the input.
K
I just don't seem to get this to work right. I'm trying to make a program to make my job easier, but as a result i've just wasted a bunch of time wandering aimlessly through this code.
What i need is a program to change multiple file names that run in a sequencial order with an additional two digit image number for only certain files added to the end.
For instance, I may have:
22200010001
22200010101
22200010102
22200010103
22200010201
But I need these files (and a few hundred others) changed to something like this:
22200000101
22200000201
22200000202
22200000203
22200000301
If anyone understands my ramblings and can point me in the right direction, i'd appreciate it.
K
Edited by Arunbear: Changed title from 'Help Needed', as per Monastery guidelines
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.