A perl script to rename image files based on unix mtime.
usage: ./all_mtime.pl
all_mtime operates on the following file suffixes:
- 3g2
- 3gp
- asf
- avi
- bmp
- divx
- flv
- gif
- gvp
- jpg
- jpe
- jpeg
- m1v
- m4v
- mov
- mp4
- mpa
- mpeg
- mpe
- mpg
- nef
- ogv
- png
- ram
- rm
- swf
- tif
- viv
- wav
- wmv
All_mtime strips the following characters from a filename:
()[]&,+
leading _ and whitespace is also removed.
Example:
example.gif
becomes:
2014_01_01_15_34_54_example.gif