Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: find files ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 10915 of 11982
Post > Topic >>

Re: find files created/accessed in last n hours

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) Apr 10, 2008 at 01:50 AM

On Thu, Apr 10, 2008 at 1:42 AM, nag <nagesh.rvce@[EMAIL PROTECTED]
> wrote:
> hi,
>  please help me to get all the files present in a directory which are
>  created/accessed in last 4 hours .
snip

Take a look at File::Find* and the stat function** or -M***.  You may
also want to read perldoc -q "How do I get a file's timestamp in
perl?"****


* http://perldoc.perl.org/File/Find.html
** http://perldoc.perl.org/functions/stat.html
*** http://perldoc.perl.org/functions/-X.html
****
http://perldoc.perl.org/perlfaq5.html#How%20do%20I%20get%20a%20file%27s%20timestamp%20in%20perl?

-- 
Chas. Owens
wonkden.net
The most im****tant skill a programmer can have is the ability to read.
 




 4 Posts in Topic:
Re: find files created/accessed in last n hours
chas.owens@[EMAIL PROTECT  2008-04-10 01:50:05 
Re: find files created/accessed in last n hours
rich.japh@[EMAIL PROTECTE  2008-04-10 07:20:59 
Re: find files created/accessed in last n hours
merlyn@[EMAIL PROTECTED]   2008-04-10 07:37:00 
Re: find files created/accessed in last n hours
rich.japh@[EMAIL PROTECTE  2008-04-10 13:53:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 15:07:34 CDT 2008.