On 16/05/2011 19:11, Bob Proulx wrote:
Everything seems equivalent. With option b much prettier I vote for
the option b suggestion from Marcus.
Thanks Marcus for jumping in with that suggestion!
Bob
No problem :)
I've learned a lot about the find utility from this bug report, and what we've
Ondřej Surý wrote:
> Marcus Cobden wrote:
> > Here's (what I hope is) a small optimisation to Bob's solution.
>
> Hmm, that looks like a nice optimization. Bob, what do you think?
Two ways of doing this under discussion:
a) -execdir sh -c 'test -z "$(fuser "$0")"' {} \;
b) ! -execdir fus
Hmm, that looks like a nice optimization. Bob, what do you think?
-s (suppresses the output of fuser)
O.
On Mon, May 16, 2011 at 15:52, Marcus Cobden
wrote:
> Here's (what I hope is) a small optimisation to Bob's solution.
>
> * fuser returns non-zero if the files aren't in use
> * since we onl
Here's (what I hope is) a small optimisation to Bob's solution.
* fuser returns non-zero if the files aren't in use
* since we only need the argument once, we probably don't need a shell
Can you guys check this over for me?
find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f \
-c
4 matches
Mail list logo