Hello all, thanks for your time (and this forum, what an awesome resource for newbs like myself!)
Anyways, I've been given the task of importing content from a directory of about...7000 HTML files. They are all named appropriately and broken down by name depending on what book they belong too.
For example, say I have the book "my-book" the files are named:
my-book-pagenumber-1.html
my-book-pagenumber-2.html
my-book-pagenumber-3.html
...etc.
Of course, and you probably saw this coming, a problem arises when you get to those with pages higher than 10. I'm seeing.
my-book-pagenumber-1.html
my-book-pagenumber-10.html
my-book-pagenumber-11.html
my-book-pagenumber-12.html
my-book-pagenumber-2.html
my-book-pagenumber-3.html
...etc.
Is there anyway I can just do a find/replace on the entire directory and specify the criteria? Thats the easiest way I could think of for now...doing something like.
FIND "-pagenumber-1." and REPLACE WITH "-pagenumber-001."
FIND "-pagenumber-2." and REPLACE WITH "-pagenumber-002."
FIND "-pagenumber-11." and REPLACE WITH "-pagenumber-011."
Is this possible out of the gates through a command in Terminal? Or maybe there's a script or program I could download to do this for me?
I really appreciate any of the help!