Re: Re: skinning a cat

From: Date: Mon, 01 Sep 2008 08:28:01 +0000
Subject: Re: Re: skinning a cat
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-279200@lists.php.net to get a copy of this message
Colin Guthrie schreef:
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).
righto, good to know. -exec option of a find is one I still have to look up every time I use it (although I think I guess the syntax correctly ... once)
HTHs Col


« previous php.general (#279200) next »