I can't figure out how to read the contents of a directory that includes other directories and files.
For example, here is what I want to do.
1. cd to a particular directory.
2. read contents of the directories within, and manipulate the dir names so I can "grab" the 3 directories with the latest timestamps.
3. In each of the three dorectories above, I then will do a file exists for a particular file within.
My issue is trying to read and parse the contents of a particular directory.
Any ideas where to start?
For example, here is what I want to do.
1. cd to a particular directory.
2. read contents of the directories within, and manipulate the dir names so I can "grab" the 3 directories with the latest timestamps.
3. In each of the three dorectories above, I then will do a file exists for a particular file within.
My issue is trying to read and parse the contents of a particular directory.
Any ideas where to start?