Unix administration - Re: [Q] need script which can check day and copy files to other

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > December 2004 > Re: [Q] need script which can check day and copy files to other





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: [Q] need script which can check day and copy files to other
Robert Harris

2004-12-20, 5:50 pm

Dave Hinz wrote:
> On 20 Dec 2004 10:51:33 -0800, aaa <mccdba@yahoo.com> wrote:
>
>
>
> man date
>
>
>
>
> man find
>
>
>
>
> man cp
>
> Seriously, this is like a 6-line script. Nobody there scripts?
>

Seriously, this is a 1-line script, e.g.

find /apps/report -type f -ctime 1 | xargs cp /apps/backup

although "Yesterday" probably needs refining as a definition.

Robert
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com