You are not logged in.

#1 16 Jul 2013 10:04

winda551
New Member
Registered: 16 Jul 2013
Posts: 1

How batch mv files to folders created and named by modification date?

Hi all,

I am quite new to the terminal stuff and I just couldn't find any answer on the aforementioned subject.

On my OS X, I have a folder with about 4000 pics that I'd like to move into folders, that are named according to the modification date (not creation date) of the files. How can I accomplish this using the terminal?

I'd be very happy for any answers and hints :-)

Cheers,
winda

Offline

#2 23 Jul 2016 22:00

astern
New Member
Registered: 23 Jul 2016
Posts: 1

Re: How batch mv files to folders created and named by modification date?

Hi winda551,

if you do not mind installing exiftool ( and editing the move_jpg_to_folder.sh script ) - I installed mine via Homebrew.

You would have to change 'Date=`exiftool -DateTimeOriginal -s "$file" | awk '{sub(/^.* : /,"");print $1}'`' appropriately ( perhaps to exiftool -ModifyDate ).


regards

A.

Offline

Board footer

Powered by