On Tuesday 20 Aug 2002 2:47 pm, Saul Arias wrote: > 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
Ooops, I knew that. > > This is a nice article for newbiws on the find command: > http://www.linux-mag.com/2001-04/newbies_01.html -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list