Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: File list by date

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


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://47822]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found