I am trying to create an image timeline (vertical) of a set of images stored in all subdirectories of a given directory (stacked in last modification order)
#!/bin/bash/
find $1 -name "*.jpg" -printf "%TY-%Tm-%Td %TT %p\n"|sort -n|cut -f3 -d" ">junk9090.txt
echo $1.jpg|tr / _ >> junk9090.txt
convert -append $(cat junk9090.txt)
rm junk9090.txt
When the image is outputted it stacks them in order except the last image and then it stacks the first n-1 images again.
Desired output
Output from my bash script