I would like to rename a number of files that have the following formatting:
ABCD_20181102.jpg
DEDE_2_20181030.jpg
i.e usually 4 random letters, followed by an underscore and a date (year, month, day). Or 4 random letters followed by an underscore, a random number, an underscore and then a date.
I would like to rename these files to date, (random number if needed), and then random letters, like the following:
20181102_ABCD.jpg
20181030_2_DEDE.jpg