Hi Guys,

I am trying to arrange a huge amount of photos with a linux script into a
timestamped folder hierarchy but failing to get the script right, has
anyone done the same before. I am using a Mac to try out various scripts
found online, once I get it right i intend to run the same on my NAS that
has an Ubuntu variant OS.

I found this,
http://mikebeach.org/2011/12/10/bash-script-to-automatically-sort-photos-into-folders-based-on-exif-data-for-ubuntu-linux/
edited
to the file attached and its deleting the photos from my source directory
with this error.

============
dbwente-mac:source dbwente$ ./mike
Scanning for *.jpg...
... end of *.jpg
Scanning for *.jpeg...
... end of *.jpeg
Scanning for *.png...
./Screen Shot 2012-03-18 at 23.29.45 1.png: Checking EXIF... not found.
stat: illegal option -- -
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
 Using LMDATE:
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]]
...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
 Will rename to .cannot
cannot
cannot
cannot
cannot
cannot
sed: 1: "y/:///": transform strings are not the same length
 Moving to /Users/dbwente/Pictures/SCREENSHOTS/destination//.cannot
cannot
cannot
cannot
cannot
cannot ... done.
=================

Checking my destination  "/Users/dbwente/Pictures/SCREENSHOTS/destination/"
shows a new file called ".cannot" that is overwritten for every file
deleted from my source " /Users/dbwente/Pictures/SCREENSHOTS/source/" I am
running the script from "/Users/dbwente/Pictures/SCREENSHOTS/source/"

Is anyone able to help rectify this or offer an alternative script that
could do the job.

Cheers

-- 

  /Daniel

Attachment: mike
Description: Binary data

_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to