X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=harlQb4vIw+br0G0mAlRo0GywKxXX4rV/G8qh9CINWt PQFdlHxTOqbW8lYT1ExOHbiHoLUZPM28zddCeI7enOeLmdTIgkXyU3BuVisTdjQJ lkaTezCa2WGYkDUdLlGwBtMEEixqxsGV7rMTkuSVGV68BMuxtJQmWr6Ha1GLuDns = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=jRBJQEa9AZolMTb04QneKzCESxU=; b=Iri87JHy0aZmGmVTg vKmv4rvscH//PIqWxi6ys4k2h3UbHfKKxGMPljMoIqpUlB7vWS7+tadzSsHExfKL 7LPtNsqRSJWFd3xgcD+ZZlZbmV4pXx+25ft/CQzPnx6oqrZ2f3aLN2uBJEnD3rGP fP+Nejk9tVc1aWQknHG1RtqHwI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-12.arcor-online.net 3tf4gc15sxz8Ss9 From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Editors set x-bit (sometimes) References: <87h967obmc DOT fsf AT Rainer DOT invalid> <0D835E9B9CD07F40A48423F80D3B5A704BBD4197 AT USA7109MB022 DOT na DOT xerox DOT net> Date: Wed, 14 Dec 2016 19:22:43 +0100 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: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id uBEINIaw015956 Nellis, Kenneth writes: > Really? I always thought the opposite. With -exec, doesn't > find invoke the command for each single found object? While xargs > 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 > 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 … -print0 | xargs -0 pgm unless you already know that there are no spaces or funny characters anywhere in your filenames. Regards, Achim. -- +<[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