Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > date modified if statement

Reply
Thread Tools

date modified if statement

 
 
Joe Smith
Guest
Posts: n/a
 
      10-31-2005
Naji wrote:

> test for files that have been modified in the last 12 hours?


perl -MFile::Find -le 'find(sub {print $File::Find::name if -M $_ <
0.5},@ARGV)' /tmp /var/tmp /home/joe/Mail

-Joe
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Varibly modified type in switch statement Zhang Yuan C Programming 5 01-14-2013 07:52 AM
Date last Accessed vs Date Modified Roedy Green Java 1 02-22-2008 09:41 AM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
software to set file modified date to exif photo taken date? Alex Hunsley Digital Photography 2 05-20-2004 10:27 AM
How does a perl script get the last-modified date of a file? Rich Pasco Perl 2 10-09-2003 07:13 PM



Advertisments