Created
July 7, 2017 14:17
-
-
Save lindhe/11fb9c4c5f4ee29e3ece1ab4181bb8ba to your computer and use it in GitHub Desktop.
The mighty "arrange all photos in new corresponding direcotires" one liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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