Need a script to move files where their last mod date <= 'xx
MMM yyyy'
Evan
evan_lsa at internode.on.net
Thu Nov 9 12:13:45 CST 2006
Michael,
Thankyou apologies for referring tto them as log files these are files
containing quarantined email q per email and it's part of copfilter.
I am trying to manage the reviewing of them so i want to cull the
directory regulary once I have checked it for false positives.
evan
> Evan,
> You dont need a script to do this:
>
> find /directory/ -ctime 24 -exec mv {} /some_other_directory/ \;
>
> Although you should as mentioned previously try with -print just to make sure
> you have the command line right:
>
> find /directory/ -ctime 24 -print
>
> Michael.
>
> On Thu, Nov 09, 2006 at 07:32:32PM +1030, Evan wrote:
>
>> thanks for all the replies.
>> As I said I am looking for help on a script
>> man script doesnt help neither does google.
>> I am aware of find cp and mv
>> I expect I should iterate through the find results and move the
>> respective files but I was thinking of a cp or mv flag which will do
>> what I want without resorting to a foreach loop.
>>
>> my scripting skills are limited hence my question.
>>
>> thanks anyway
>> evan
>>
More information about the linuxsa
mailing list