I have a list of files eg.
page-1.htm
page-2.htm
page-32.htm
How do I use rename to be like this:
page-01.htm
page-02.htm
page-32.htm
I am new to this and having trouble understanding the examples online. I want to do something like the following where the ? is a variable character:
rename 's/page-?.htm$/page-0?.htm/' *