diff options
Diffstat (limited to 'dcimrename')
-rwxr-xr-x | dcimrename | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -17,9 +17,13 @@ while [ ! -z "$1" ]; do exiftool "-DateTimeOriginal>FileModifyDate" "${file}" # get timestamp from file + + # up to hundreths of a second #file_timestamp=`date -r "${file}" +"IMG_%Y%m%d_%H%M%S%2N"` + # up to one second file_timestamp=`date -r "${file}" +"IMG_%Y%m%d_%H%M%S"` + mv "${file}" "${file_timestamp}.jpg" fi |