Help with Find Command - got part of it working but lost
Problem:
I need to copy any files that where either opened, changed or created in the month of February 2010 and then copy those file to a directory called /u03/feb_act /home/Test> touch temp -t 201002010000 /home/Test> touch ntemp -t 201003010000 /home/Test> find /home/Test/ -cnewer temp -and ! -cnewer ntemp It is giving me all the files but also directories that meet that criteria I would like to look into those directories to see if any of the files meet the criteria and copy those files, and how do I get it to copy these files to a directory called /u03/feb_act Thanks - DG |
Quote:
Quote:
|
Thanks, how do I copy this files to the directory /u03/internal/Feb_Work/
|
Quote:
Code:
find /home/Test/ -type f -cnewer temp -and ! -cnewer -exec cp -p {} /u03/internal/Feb_Work/ \; |
All times are GMT -5. The time now is 10:06 PM. |