I would like to change the month abbreviations to its number. so Aug would become 08. This is essentially going from type %b to %m. I am also rearranging this file's name as well so I would love to have this all in one step.
I currently have:
- Code: Select all
Match: (.{2})(.{3})(.{4})(.+)
Replace: \3-\2-\1\4
So the above converts to: 2012-Aug-01-065328.log
I would like it to ultimately read: 2012-09-01-065328.log I have thought of taking 2 steps and that is ok if that would be the easiest. I could have the rearrange as the first rename step but I don't know how to convert the month for the second rename step.
Any help would be appreciated.