On 22 Jun 2006, at 08:59 , Jon Guyer wrote:
On Jun 22, 2006, at 10:55 AM, Jared Earle wrote:
On 6/22/06, Google Kreme <[EMAIL PROTECTED]> wrote:
10 5 1 * * find $HOME/Documents/.backups/ -atime +60 -print0 | xargs
-0 rm
or even ...
find $HOME/Documents/.backups/ -atime +60 -exec rm '{}' \;
or
find $HOME/Documents/.backups/ -atime +60 -delete
Yep, both of those work. When I first wrote that cron line, the
system I was on did not support -delete and exec rm was problematic
with paths that contained spaces, as I recall (this was more than 10
years ago), so I used print0 and xargs -0, which has always worked.
Still, for sheer cleverness, Peter's got us beat.
--
Lobotomy means never having to say you're sorry -- or anything else.
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>