cmd - Batch/Bulk rename of folders/directories with wildcards [windows or linux] -


hello have directory photos in structure of

pictures/year/month/[dd/mm/yyyy]_description.

sometimes did not use [dd/mm/yyyy] [dd/mm/yy] example [22-03-13] instead [22-03-2013].

i need rename of command because there lot change hand.

i able find them using "everything" finder

"e:\pictures\" [??-??-13]_*

i love command like:

rename [??-??-13]_* [??-??-2013]_*

where ? , * remain same. possible? thank time.

ps can use either linux or windows.

many linux distros come great tool called rename want.

for example:

$ rename -n 's/(\d{2})-(\d{2})-(\d{2})_(.*)/$1-$2-20$3_$4/' ./* './08-01-14_tahiti.jpg' renamed './08-01-2014_tahiti.jpg' './14-11-13_guam.jpg' renamed './14-11-2013_guam.jpg' './23-07-12_hawaii.jpg' renamed './23-07-2012_hawaii.jpg' 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -