when.icn: Program to show file age

August 14, 1996; Chris Tenaglia
Requires: UNIX
This file is in the public domain.
This one was developed for UNIX (namely ULTRIX 4.3 rev 44). Maybe
it will work on some other UNIX too. I'd like to know. This program
is called 'when'. It's like a date based ls command. Some have told
me 'find' can do the same things, but I find find a bit arcane?

So 'when' is what I use. Here are some samples:

     when before 4/12/92      # files before a date
     when before 300          # files older than an age
     when after 3/25          # or younger than a date this year
     when before 2/1/94 and after 10/31/93     # even a range

More options and clauses are supported. Look at the code for clues.
This one only works in the current directory. It also has an interesting
property. Maybe this is just ULTRIX, maybe not, I'd like to know anyway...
The interpreted version works fine, but the compiled version has a
numeric overflow. That'll make for some fun debugging. I wrote it for
myself as a tool to locate old files for archiving or deleting. Study and
enjoy!

Source code | Program Library Page | Icon Home Page