The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
urgent help needed!!in copying files to /tmp at boot time,pls help! wrapster UNIX for Advanced & Expert Users 0 04-27-2008 10:00 AM
Copying files created after a specified date/time jm6601 Shell Programming and Scripting 2 11-28-2007 01:29 PM
Generating files with time interval of fifteen minutes aajan Shell Programming and Scripting 0 09-25-2007 01:54 AM
Copying Files in the same order along with time stamps shyam.appalla Shell Programming and Scripting 2 12-04-2005 10:44 AM
Time Wait interval eloquent99 SUN Solaris 1 12-05-2003 09:56 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2009
Pratik4891 Pratik4891 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 3
Copying files between two time interval

Hi All,

I am new to this forum....

Can neone please help me how to copy files between two time intervals i.e. I need to copy files from 6.30 to 9.30 on 5th June 09.

Any help is appreciated.
  #2 (permalink)  
Old 07-03-2009
lathavim lathavim is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 73
Hi

If you know the first & last file created at 6:29 & 21:30 use the below command.
find . -newer firstfile ! -newer lastfile -print -exec cp {} /directory_to_be_copied \;

Else touch a dummy file and delete it after doing copy.

touch 0605062909 dummyfile1 (MMDDHHMIYY)
touch 0605213009 dummyfile2

find . -newer dummyfile1 ! -newer dummyfile2 -print -exec cp {} /directory_to_be_copied \;

Last edited by lathavim; 07-03-2009 at 08:34 AM..
  #3 (permalink)  
Old 07-03-2009
Pratik4891 Pratik4891 is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 3
Hi,

Thanks a lot for your reply...Appreciate your help.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On



All times are GMT -4. The time now is 09:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0