I have a bunch of files with a similar filename:
19-05-01_onetwothree.pdf
19-06-02_anotherone.pdf
The first 6 characters are the date these files were created (I get them from my insurance that way). Now I'd like to rename them to match my file naming conventions (YYYYMMDD_....). On a unix system, I would probably do something like this (untested):
Code: Select all
s/^([0-9]{2})-([0-9]{2})-([0-9]{2})_/20\1\2\3_/
Thanks in advance
André