Skip to content

Instantly share code, notes, and snippets.

@lindhe
Created July 7, 2017 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindhe/11fb9c4c5f4ee29e3ece1ab4181bb8ba to your computer and use it in GitHub Desktop.
Save lindhe/11fb9c4c5f4ee29e3ece1ab4181bb8ba to your computer and use it in GitHub Desktop.
The mighty "arrange all photos in new corresponding direcotires" one liner
find . -type f -print | perl -ne '/(.*IMG_(\d{4})(\d{2})(\d{2}).*)/ && print `mkdir -p $2/$2-$3/$2-$3-$4; mv $1 $2/$2-$3/$2-$3-$4`'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment