I have thousands of files that I need to rename with the following format. 2008:09:18:17:45:48-alfanumeric-alfanumeric.wav the first part is a date.
Ex. 2008:09:18:17:45:48-703-s.wav
A want to rename it to:
20080918.174548.703.s.wav
Basically to remove the ':' and to make a more human readable format and easier to split.
I know that rename is what im looking for but the regex is not working. I'm typing:
rename 's/(\d)\:(\d)\:(\d)\:(\d)\:(\d)\:(\d)-(.?)-(.?).wav/$1$2$3.$4$5$6.$7.$8.wav/' ./*