App to organize my photos into folders by date
Here's a bash script that sorts files into year/month/day/ directory paths.

#!/bin/bash
dir=/path/to/directory
find "$dir" -maxdepth 1 -type f | while IFS= read -r file; do
  year=$(stat -f "%Sm" -t "%y" $file)
  month=$(stat -f "%Sm" -t "%m" $file)
  day=$(stat -f "%Sm" -t "%d" $file)
  [[ ! -d "$dir/$year/$month/$day" ]] &amp;&amp; mkdir -p "$dir/$year/$month/$day"; 
  mv "$file" "$dir/$year/$month/$day"
done


Untested, have backups, etc

Save the script as something.sh, change the second line of the script to the path that you want to sort the contents of, then run chmod u+x /path/to/file.sh &amp;&amp; /path/to/file.sh. However, if you are unfamiliar with shell scripts I wouldn't recommend this hacked-together, untested script that I wrote late at night be the very first script you run!