From 24dc561ded664c9e963358574f3406257389a4ce Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 2 Dec 2017 23:05:16 +0100 Subject: sort-images: Use correct modification date Signed-off-by: Florian Pritz --- sort-images | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sort-images b/sort-images index 8f64811..b187301 100755 --- a/sort-images +++ b/sort-images @@ -1,6 +1,6 @@ #!/bin/sh -perl-rename -v 'BEGIN{use Image::ExifTool qw(ImageInfo); use Date::Parse; use Date::Format;}; $data = ImageInfo($_); $date = time2str("%Y-%m-%d", str2time($data->{FileModifyDate})); $_ = "$date/$_";' "$@" +perl-rename -v 'BEGIN{use Image::ExifTool qw(ImageInfo); use Date::Parse; use Date::Format;}; $data = ImageInfo($_); $date = time2str("%Y-%m-%d", str2time($data->{ModifyDate})); $_ = "$date/$_";' "$@" # the same in slow #for i in "$@"; do -- cgit v1.2.3-24-g4f1b