From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55908 invoked by alias); 14 Dec 2016 13:37:52 -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 55894 invoked by uid 89); 14 Dec 2016 13:37:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*MI:sk:87h967o, opposite, pgm X-HELO: USA7109MR003.ACS-INC.COM Received: from usa7109mr003.acs-inc.com (HELO USA7109MR003.ACS-INC.COM) (13.28.230.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Dec 2016 13:37:49 +0000 Received: from usa7109ht002.na.xerox.net ([13.41.230.32]) by USA7109MR003.ACS-INC.COM with ESMTP/TLS/AES128-SHA256; 14 Dec 2016 07:37:47 -0600 Received: from USA7109MB022.na.xerox.net ([169.254.6.129]) by USA7109HT002.na.xerox.net ([13.41.230.32]) with mapi id 14.03.0294.000; Wed, 14 Dec 2016 07:37:47 -0600 From: "Nellis, Kenneth" To: Achim Gratz , "cygwin@cygwin.com" Subject: RE: Editors set x-bit (sometimes) Date: Wed, 14 Dec 2016 13:37:00 -0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BBD4197@USA7109MB022.na.xerox.net> References: <87h967obmc.fsf@Rainer.invalid> In-Reply-To: <87h967obmc.fsf@Rainer.invalid> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2016-12/txt/msg00149.txt.bz2 > From: Achim Gratz=20 > .. the latter is slightly less efficient and you have to > do -print0/-0, but I tend to get it right more easily then the -exec > stuff. 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. For example: find ... -exec pgm {} \; 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. If I'm wrong about this, please share. Or, perhaps we are talking about commands that only take a single object. In that case, you would need to say xargs -n1 in which case, I agree, it is less efficient. --Ken Nellis -- 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