in reply to Re: File list by date
in thread File list by date

Heh -- non Perl advice follows :)

If you're using linux (or most any *nix -- I think this flag is the same for most versions of ls) you should just use the -t flag and let ls do the time sorting for you. Or use -T for most recent first.

Similarly, there are flags for dir that allow it to do the sorting, too. See dir /? for clues.

Replies are listed 'Best First'.
Re: Re: Re: File list by date
by dkaplowitz (Novice) on Mar 19, 2004 at 17:00 UTC
    Thanks for this thread. It's got me part of the way through a dilemma I'm trying to figure out. Can anyone tell me how I might add something like --

    "if any of these files is/are older than 5 minutes, create a file named warning_x in folder_x"?

    Thanks for any input. Dave