The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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 09:34 AM..