List only latest file in directory
Posted on 2002-04-17
I have a directory with many files in it; it gets a new file written to it daily. I want do a long list of only the latest file in the directory. Can this be done? I prefer to see only one file in my listing, the latest one by creation date. I would settle for all the files created within the last day. I am running Solaris 2.6
Please reply with any ideas you may have.