Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
P is for Practical
 
PerlMonks  

Re^4: list files based on age and pattern

by Happy-the-monk (Monsignor)
on Sep 16, 2013 at 10:38 UTC ( #1054273=note: print w/ replies, xml ) Need Help??


in reply to Re^3: list files based on age and pattern
in thread list files based on age and pattern

To test for files older than 15 mins use ... and (-M) > 1.0 / 96 in your grep.

That's a pretty strong obfu to someone who is not fluent with the -M file test.

It is definitely worth a comment in your code what you meant to do/'re doing there. ;-)

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)


Comment on Re^4: list files based on age and pattern
Re^5: list files based on age and pattern
by hdb (Parson) on Sep 16, 2013 at 10:51 UTC

    You mean, pointing out that -M units are days and that a day has 24 * 4 = 96 intervals of 15 minutes?

      You mean, pointing out that -M units are days and that a day has 24 * 4 = 96 intervals of 15 minutes?

      Nah, just saying "this tests for files older than 15 minutes" because "... and (-M) > 1.0 / 96 " simply does not look that way.

      Advice was to the OP, as you already said so in your post.

      Cheers, Sören

      Créateur des bugs mobiles - let loose once, run everywhere.
      (hooked on the Perl Programming language)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-04-20 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls