Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Just another Perl shrine
 
PerlMonks  

Re: Re: File list by date

by snax (Hermit)
on Dec 21, 2000 at 15:56 UTC ( [id://47822]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 12: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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://47822]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.