Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Le 12/01/2011 13:34, Christian Lohmaier a écrit :
Hi *,

On Sat, Jan 8, 2011 at 2:06 AM, Julien Nabet<serval2412@yahoo.fr>  wrote:
I used xargs instead of -exec to reduce chmod spawning.
Hope there's no mistake in it.
I don't see the point in using -i - since that in turn causes one
process per file, so you don't really gain anything, do you?

Furthermore -i is not supported on mac, and in my linux-xargs manpage
-i is flagged as being deprecated.
(-I would work on both), but again: Using -i / -I and thus the implied
-L 1 nullifies the benefit, doesn't it?

find $packagename -type d -print0 | xargs -0 chmod 775

should do the trick

ciao
Christian

Hello,

I didn't know that. I had learnt (some years ago) that xargs was better than -exec and I've been showed this command with -i.
Moreover, I didn't know too that the -i option brings 1 process per file.
So thank you a lot, I've learnt something and from now, I try to make no more this mistake !

Julien.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.