Re: [Q] need script which can check day and copy files to other location???

From: Dave Hinz (DaveHinz_at_spamcop.net)
Date: 12/20/04


Date: 20 Dec 2004 20:48:31 GMT

On 20 Dec 2004 10:51:33 -0800, aaa <mccdba@yahoo.com> wrote:
> We have application every day will create bunch of files under a directory (e.g.
> /apps/report). Does any one has script can do following:
>
> 1. read system date (today)

man date

> 2. check files under directory (e.g. /apps/report) which create Yesterday

man find

> 3. copy files to other location (e.g. /apps/backup)
 
man cp

Seriously, this is like a 6-line script. Nobody there scripts?