A colleague wanted a way to list how recently files were accessed compared to when they were created. While my reply is not particularly original my colleague was impressed with how quickly a perl command could be created that answered his exact question:

perl -e 'map \{printf "%10.3f - $_\n",(-C)-(-A)},@ARGV' *

Replies are listed 'Best First'.
Re: File access times
by zentara (Cardinal) on Apr 22, 2004 at 12:15 UTC
    I thought that there was no such thing as "creationtime" being saved as a stat? There is "ionode change time", but is that accurate? I've read that ctime changes quite often.

    I'm not really a human, but I play one on earth. flash japh

      A fair comment, however for this particular set of files the inode change time is close enough.