From owner-freebsd-questions@freebsd.org Mon Oct 19 00:34:42 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8A4AA440156 for ; Mon, 19 Oct 2020 00:34:42 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CDySd0z6Jz3d4g for ; Mon, 19 Oct 2020 00:34:40 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 15300 invoked from network); 19 Oct 2020 00:34:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=3bc2.5f8cdf1f.k2010; bh=s53suuU3aEswTqVybjrPoU9MduJXE8zO1H9R9w1vai0=; b=trDc+H57Cnv6rC7Dw2a43JeCc7T1+3EI3ca5dXlAyDQFhG78jk3ljio0TMd6U+6Smt8UChF1o8a8YLt5rBH7korlv9PFzgvuQD07Iy1cPEBWTobWxPFLZN8D9M5FO0pIuYm6Gb2BhA7CbHXduakd1rEbaCVeB0q7TBYstfdxS9JlDIK/ZSco+PRL2MDif2e/j+bGxZ2o+ERxnyAQ/hUKu5mTGUgQyZiUp9576Oh7VLtUHYdGjSHdBFRLASENQqs0JhxXM0uwKOzz6uPqNLrE9FU/MAaQuXWJRSQ91eTQEuuAfDCKpL9MWgkE7ddSa9N6Cee5WDMVCjCKBMNiiDWisw== Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.2 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 19 Oct 2020 00:34:39 -0000 Received: by ary.qy (Postfix, from userid 501) id DEE4923A1E5D; Sun, 18 Oct 2020 20:34:38 -0400 (EDT) Date: 18 Oct 2020 20:34:38 -0400 Message-Id: <20201019003438.DEE4923A1E5D@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: bob@proulx.com Subject: Re: sh scripting question In-Reply-To: <20201018155812796938832@bob.proulx.com> Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 4CDySd0z6Jz3d4g X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=3bc2.5f8cdf1f.k2010 header.b=trDc+H57; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-4.96 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[iecc.com:s=3bc2.5f8cdf1f.k2010]; NEURAL_HAM_MEDIUM(-1.09)[-1.094]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[iecc.com:dkim]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.965]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[iecc.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[iecc.com,none]; NEURAL_HAM_SHORT(-0.40)[-0.397]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 00:34:42 -0000 In article <20201018155812796938832@bob.proulx.com> you write: >> Sometimes that's better, sometimes not. I have find scripts that delete >> stale files, and it is a lot faster to use xargs to run "rm" once for >> each thousand files than once per file. > -exec utility [argument ...] {} + > Same as -exec, except that “{}” is replaced with as many > pathnames as possible for each invocation of utility. Oh, look at that. Worth a try. R's, John -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly