Re: Why does this script not allow the moving of files?



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. >
.



Relevant Pages

  • Re: Why does this script not allow the moving of files?
    ... You may have to qoute your regexp in the find command to escape the ... shell. ... Ukelele Aficionado wrote: ... are above a certain age. ...
    (comp.unix.solaris)
  • Re: Trig test
    ... deep-seated disgust with this new coinage. ... Yebbut why a "piece"? ... Perhaps it is an indication of the beginnings of the Age of Unnecessary ...
    (uk.rec.sheds)
  • Re: Myth in Mathematics !
    ... There should have been more marks or some early indication in ... which you recognized your own ability before 25 years of age. ... blinding curtain will suddenly fall on your 25th birthday! ...
    (sci.math)
  • Re: Anyone know
    ... Because that would mean you would post on AVLV and confuse us. ... the same general area, and was age appropriate. ...
    (alt.vacation.las-vegas)
  • Re: Budgies and black feather spots
    ... Is this any indication of how old ... he might be - do the sports start to multiply at a certain age? ... A more reliable indicator of his age are the ... young budgies have the bars all the way from the top of the head to their cere; when they undergo their first moult at about 18 weeks of age those bars disappear. ...
    (rec.pets.birds)