> -----Original Message-----
> From: Wagner, David --- Senior Programmer Analyst --- WGO
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 1:05 PM
> To: 'John W. Krahn'; [EMAIL PROTECTED]
> Subject: RE: `ls -ltr`
> 
> 
>       If you are starting the script each time, the -M will 
> work, but if
> it is something that is always up and running(maybe not 
> initially, but if
> you are working towards that) then -M will not give you what 
> you expect.
> The -M goes in relation to the startup of the script.
> 
>       Just a FYI because it has bitten me from an earlier script.
> 
> Wags ;)

Well, in this case John's script is fine, because he's interested in only
the relative values of -M when comparing one file to another. The base value
of ^$T is irrelevant to finding the five newest files.

-M burns you in a long-running program when you want to find "files older
than x days" where "x days from *right now*" is implied. This can be
overcome by locally setting ^$T=time() before evaluating -M.

:)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to