The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: copy file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-17-2007
ennstate ennstate is offline
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
To be more precise,

find . -name '*' -[m|c|a]time [-|+]NoOfDays | xargs -I{} -t cp {} /tmp/{}

You may have to decide on which time (mtime,ctime,atime) and the days (before/notbefore/exactly on)to obtain the file list.

Please search the forum for more info on find command.


Thanks
Nagarajan Ganesan
Reply With Quote