Listing files bet. two specified dates

Wm E. Davidsen Jr davidsen at sixhub.UUCP
Wed Oct 24 12:55:14 AEST 1990


In article <9220005 at hpldsla.sid.hp.com> manoj at hpldsla.sid.hp.com (Manoj Joshi) writes:

| Alternatively, has anyone written a utility that will list out all
| files that have their modification times between two specified times.
| for eg., all files between Oct 1 1990  and  Oct 10 1990. 

  The 'le' utility, posted to the net some time ago, has an option -f
which causes dates to be output YYYY-MM-DD HH:MM for sorting. It was
intended to help with sorting, but would make your task a bit easier,
too.

  You can use awk, get the field using substr rather than the field
number, and use the 'split' function to determine if the value is a
time, and if so put the year in place of the time. This is an uglier
solution, but it uses all portable tools.
-- 
bill davidsen - davidsen at sixhub.uucp (uunet!crdgw1!sixhub!davidsen)
    sysop *IX BBS and Public Access UNIX
    moderator of comp.binaries.ibm.pc and 80386 mailing list
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.unix.questions mailing list