I have a directory with sub-directories that contains images.I want to make a new directory and move all the images in there and then sort them to sub-directories with the order
year/month/day of modification.
I thought of using
mv to move all the images to the new directory, find the date of first image in directory, make a sub-directory named after the year of this image and then find and move all the images with the same year in that sub-directory.I will do this for every image in the main directory and then I will repeat the procedure in every sub-directory for month and then day.
My problem is that I believe that there must be a sorter way for me to do this.