The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find and store files based on FileName and Modified Time edisonantus UNIX for Advanced & Expert Users 2 02-19-2008 11:25 AM
deleting files based on file name and modified time ammu UNIX for Dummies Questions & Answers 1 01-22-2008 08:09 AM
Finding list of modified files for a particular time duration sanajyg_mnit SUN Solaris 2 02-13-2007 12:48 AM
Finding out the last modified time for files kumariak Shell Programming and Scripting 3 10-18-2005 11:11 AM
Checking modified time of files am97395331 UNIX for Dummies Questions & Answers 4 07-02-2003 07:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2007
Registered User
 

Join Date: Oct 2007
Posts: 10
Question Unzip files where modified time>05:00 ?

Hello

I am on the shell prompt in a directory, with couple of zip files in it.

How can I

unzip '*.zip' where modified time > 05:00


...please help

Regards
SunnyK
Reply With Quote
Forum Sponsor
  #2  
Old 11-06-2007
Yogesh Sawant's Avatar
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 798
can you please elaborate what do you mean by 05:00? use the find command to pick up files matching your criteria. this gives some more information
Reply With Quote
  #3  
Old 11-06-2007
Registered User
 

Join Date: Oct 2007
Posts: 10
Quote:
Originally Posted by Yogesh Sawant View Post
can you please elaborate what do you mean by 05:00? use the find command to pick up files matching your criteria. this gives some more information
I know that it is possible to do

find * -mtime -1

This will display files modified in the last 1 day. I'd like to do this for last 15 hours so it displays the files modified in the last 15 hrs rather than 1 day. Then I'd like to unzip all these files.

Is this possible...

Thanks
SunnyK
Reply With Quote
  #4  
Old 11-06-2007
Registered User
 

Join Date: Oct 2007
Posts: 10
Quote:
Originally Posted by Yogesh Sawant View Post
can you please elaborate what do you mean by 05:00? use the find command to pick up files matching your criteria. this gives some more information
Hi Yogesh

I have got it to work using

find * -mmin -1440

which lists files modified in the last 24 hrs (from current time)

I'd also like to unzip these files returned. How do I go about doing this.

Thanks
SunnyL
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
find -mtime

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0