How to check files recursively and get the latest file from the highest numbered directory.
1. We will have numbered directories 11110, 11114, etc.
2. Each above directory will have sub directories called changed and bkp
3. Each changed directory will have set of files...file1.txt, file2.txt, file3.txt etc. (bkp directory should not be considered in this logic)
4. We need to get latest numbered files in a output.txt
Based on the attached sample zip file below is the output
Please help me with bash funciton where it accepts the directory path e.g /tmp/test/