From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27514 invoked by alias); 14 Dec 2016 18:23:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27499 invoked by uid 89); 14 Dec 2016 18:23:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=kenneth, Kenneth, opposite, pgm X-HELO: mail-in-17.arcor-online.net Received: from mail-in-17.arcor-online.net (HELO mail-in-17.arcor-online.net) (151.189.21.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Dec 2016 18:22:54 +0000 Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mx.arcor.de (Postfix) with ESMTP id 3tf4gc2SX3zZRp for ; Wed, 14 Dec 2016 19:22:52 +0100 (CET) Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id 4DF4C46E782 for ; Wed, 14 Dec 2016 19:22:52 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-12.arcor-online.net 3tf4gc15sxz8Ss9 Received: from Gertrud (p4ff1c71e.dip0.t-ipconnect.de [79.241.199.30]) (Authenticated sender: stromeko@arcor.de) by mail-in-12.arcor-online.net (Postfix) with ESMTPA id 3tf4gc15sxz8Ss9 for ; Wed, 14 Dec 2016 19:22:51 +0100 (CET) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: Editors set x-bit (sometimes) References: <87h967obmc.fsf@Rainer.invalid> <0D835E9B9CD07F40A48423F80D3B5A704BBD4197@USA7109MB022.na.xerox.net> Date: Wed, 14 Dec 2016 18:23:00 -0000 In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A704BBD4197@USA7109MB022.na.xerox.net> (Kenneth Nellis's message of "Wed, 14 Dec 2016 13:37:47 +0000") Message-ID: <87zijyid58.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2016-12/txt/msg00158.txt.bz2 Nellis, Kenneth writes: > Really? I always thought the opposite. With -exec, doesn't > find invoke the command for each single found object? While xargs=20 > allows a single command to operate on a whole slew of objects. I said "-exec +", although I concur it was too easy to miss. > For example: > find ... -exec pgm {} \; Try replacing the "\;" with "+", depending on whether pgm can deal with multiple arguments. > executes pgm separately for each found object while > find ... | xargs pgm > invokes pgm only once for as many files as will fit on the=20 > command line, which is quite a few. Which is what find ... -exec pgm {} + will do, without piping the data to xarg and without you having to remember that you really, really wanted to say find =E2=80=A6 -print0 | xargs -0 pgm unless you already know that there are no spaces or funny characters anywhere in your filenames. Regards, Achim. --=20 +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple