Code:
$ ls
eg06_ana_21-05-06_09:21:03.JPG
$ for i in $( find -name \*JPG ); do echo mv $i $(echo $i|tr ':' '-'); done
mv ./eg06_ana_21-05-06_09:21:03.JPG ./eg06_ana_21-05-06_09-21-03.JPG
If this does what you expect, just remove the
BOLD echo and run it.
[edit]
But while you're at it, why not convert the date to an iso
date so your files sort chronologically? =}
Code:
for i in $( find -name \*JPG ); do echo mv $i $(echo $i|sed -r -e 's/([0-9]{2})-([0-9]{2})-([0-9]{2})/\3\2\1/' -e 's/://g'); done
mv ./eg06_ana_21-05-06_09:21:03.JPG ./eg06_ana_060521_092103.JPG
[/edit]
Cheers,
Tink