At 09:36 AM 20-08-02, Gary Stainburn wrote:
>How are you going to archive the files?
>
>If you can simply pass a list of file names, you could redirect the output of
>the 'find' command.  If you do 'man find' it will show you how you can
>specify a selection criteria.  You'll want something like:
>
>find $mydir -ctime 183 |myarchiveprog
>
>This will list all files inside the directory $mydir where the date last
>changed is >=183 days (six months) ago, and pass the list to myarchiveprog.

Minor, but important correction:
find $mydir -ctime 183    <---- finds files changed 183 days ago, no more, 
no less
find $mydir -ctime +183   <---- finds files changed more than 183 days ago
find $mydir -ctime -183   <---- finds files changed less than 183 days ago

This is a nice article for newbiws on the find command: 
http://www.linux-mag.com/2001-04/newbies_01.html


-- 
Saul Arias <[EMAIL PROTECTED]>



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to