I'm doing a LRU script, but after 20 hours working on it, I have a problem with recursive mode that I can't fix.
I just need a command that show me files sorted by access time (--time=atime); I want to manage the depth too, but if I can't, it's okay too.
- Main directory :
- File 1
- Directory 1 :
- File 1
- File2
- Subdir 1 :
- file1
- file 2
- Directory 2 :
- File 1
- File 2
- Subdir 2 :
- file 1
- file 2
- subdir 3 :
- file 1
I want to exclude directory, just having file sorted by access time
like
/Main Directory/Directory 1/file 1
/Main Directory/File 1
/Main Directory/Directory 1/Subdir 1/file 2
/Main Directory/Directory 2/Subdir 2/subdir 3/file 1
etc..