Re: Why does this script not allow the moving of files?
- From: Darren Dunham <ddunham@xxxxxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 01:04:15 GMT
Ukelele Aficionado <ukelelebob@xxxxxxxxx> wrote:
Can anyone help me out of a logjam? I would like to run a cron job that
will detect the age of file in a directory and move the files if they
are above a certain age.
Why does the following fail?
find {Directory_Path} -name *.* -ctime +60 -exec mv '{}'
{Directory_Path_to_Move Files} \;
Why are you using ctime? That is not the files creation time and may
not be a good indication of age.
--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.
- References:
- Why does this script not allow the moving of files?
- From: Ukelele Aficionado
- Why does this script not allow the moving of files?
- Prev by Date: Re: Boot Ultra 80 from Atto express 4LUD card
- Next by Date: Re: Tar files after a certain date
- Previous by thread: Re: Why does this script not allow the moving of files?
- Next by thread: setting nw speed to 1gb on solaris 10
- Index(es):
Relevant Pages
|