Re: skinning a cat
| From: | Colin Guthrie | Date: | Mon, 01 Sep 2008 08:20:33 +0000 |
| Subject: | Re: skinning a cat | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279198@lists.php.net to get a copy of this message | ||
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).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). HTHs Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]find $lockfile -cmin +60 | xargs rm