I have a hard disk with a lot of folders and sub folders. The format is like that :
/ genre1 / artist / set of pictures1 / list of .jpg
but it can also be
/ genre2 / set of pictures2 / list of .jpg
I would like to get the full list of paths where the .jpg are. They are the last folder of each folder tree.
How can i do it with a shell script ? I was trying to use "find" with mindepth or maxdepth and -type d but i can't tell how many depth levels i must look for .. it can change.
Thanks