in reply to How to list files in dir with respect to time ?

You can use readdir to get the filenames in a directory, the -f test to filter out non-file entities, and then sort based on the -M test.


Dave

  • Comment on Re: How to list files in dir with respect to time ?