Colin Guthrie wrote:
> Jochem Maas wrote:
>> either way, I've just learn't something new as far as shellscripting
>> goes :-)
>> apart from the xargs command ... that still does my head in (don't
>> worry I'll look it up ... for the umpteenth time).
>>>
>>> find $lockfile -cmin +60 | xargs rm
>
> FWIW, it's nicer to do:
> $ find $lockfine -cmin +60 -exec rm {} \;
>
>
> This method handles files with spaces in them, where are the xargs
> method does not (not that it matters in this case).
That could also be taken care of by:
find $lockfile -cmin +60 -print0 | xargs -0 rm
IMO, the syntax of the -exec argument is too cumbersome.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php