[SunHELP] why does this find cmd not work


Mon Oct 7 10:44:10 CDT 2002


Are your 23 hits directories?  "rm" won't get those.

To see: "find . -ctime +1 -ls"

..to limit to files only..
find . -ctime +1 -type f -exec rm {} \;

-M



-----Original Message-----
From: Simon Jespersen [mailto:shj at pine.dk]
Sent: Monday, October 07, 2002 1:32 AM
To: Sun solaris help list
Subject: [SunHELP] why does this find cmd not work


Hi!
Does anyone have a clue about this find command issue
when i type
find . -ctime +1
i get 23 hits, and thats fine
when i then do this
 find . -ctime +1 -exec rm {} \;
It returns 0
but no files are removed, is there some issue with change time, access time,
when one tries to execute such commands,
Best regards
Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list