in reply to Recent file

With opendir/readdir/closedir, sort and -M.

It's not so hard - what have you tried so far?

Replies are listed 'Best First'.
Re^2: Recent file
by rovf (Priest) on Mar 05, 2009 at 13:50 UTC

    I think -M wouldn't help here, because it calculates based on the file modification, not creation time, as the OP wanted. AFIK there is no general way to obtain the creation time.

    -- 
    Ronald Fischer <ynnor@mm.st>

      Please note that you are making a common mistake with ctime - it is not create time, but inode change time.

      Update: Either I didn't read carefully or the parent updated their node. Probably the former.

      --MidLifeXis