From owner-freebsd-questions@FreeBSD.ORG Tue Feb 15 16:06:58 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8526A106567A for ; Tue, 15 Feb 2011 16:06:58 +0000 (UTC) (envelope-from prvs=020fb121e=pschmehl_lists@tx.rr.com) Received: from ip-002.utdallas.edu (ip-002.utdallas.edu [129.110.20.108]) by mx1.freebsd.org (Postfix) with ESMTP id 536638FC1F for ; Tue, 15 Feb 2011 16:06:58 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8KAHUsWk2BbgogVmdsb2JhbAClZAEhAiC8ToVeBIUFjT4 X-IronPort-AV: E=Sophos;i="4.60,474,1291615200"; d="scan'208";a="50656509" Received: from zxtm01.utdallas.edu (HELO [129.110.200.11]) ([129.110.10.32]) by ip-002.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Feb 2011 09:37:51 -0600 Date: Tue, 15 Feb 2011 09:37:49 -0600 From: Paul Schmehl To: Peter Andreev , freebsd Message-ID: <7CD0B68CDB1B3698E9ABE60D@utd71538.local> In-Reply-To: References: <3.0.1.32.20110214163437.019167e0@sage-american.com> <12e28896cd5.6574638108640039636.4001582758217268039@zoho.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: script help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 16:06:58 -0000 --On February 15, 2011 12:57:12 PM +0300 Peter Andreev wrote: > Use of "xargs" on many files will be much faster than "find...exec" > construction > > find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' > I believe you, but can you explain why this is true? What makes xargs faster than exec? -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell