From owner-freebsd-questions@FreeBSD.ORG Tue Jun 16 14:03:38 2009 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 92705106566C for ; Tue, 16 Jun 2009 14:03:38 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 265958FC2C for ; Tue, 16 Jun 2009 14:03:37 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: by ewy8 with SMTP id 8so5077846ewy.43 for ; Tue, 16 Jun 2009 07:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Vb7R5l0PY5qCY14Cwv4fck1ogSrsu5eIX7avPfNkcWQ=; b=O01WhoKPdZwR5Zk6nkOHxi2y7Rg9Il2UaL+F9DLm+pqwZ3I9v/kwtsbRV8GliyBEJI gMw+ak6XhA2Jj8zpNuIHTaOllxS2v9uMVnr25XGiZEF7xX8xNiHlA3QzcRpDpkCDn4bg 7UBTmL1dDlbesVAGjiPkghBAkfx/pTOQHba8g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Jxqohg04Dl+BZqn4hehCAgDNc7TEE2QnbzueopS4qmzw+DVgNnPqvaEdI4rLu3SpEP gC2UI90u75uvji1097jZXG72z87guuj2IiAKgTa3qKMwNDAXBp0d3yjkxhDWoYEC975A 5iAnljw1K5k9E4PWSPKAOWiHLF7zbzDEU9miU= MIME-Version: 1.0 Received: by 10.210.56.2 with SMTP id e2mr7277919eba.18.1245161016174; Tue, 16 Jun 2009 07:03:36 -0700 (PDT) In-Reply-To: <2620c3260906160636j1f6758fcgafaa6c50811a3452@mail.gmail.com> References: <2620c3260906160636j1f6758fcgafaa6c50811a3452@mail.gmail.com> Date: Tue, 16 Jun 2009 10:03:33 -0400 Message-ID: From: Daniel Underwood To: Moises Castellanos Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Carmel NY , FreeBSD Questions Subject: Re: Problem with bash script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 14:03:38 -0000 > $ find ./ -name "*.pem" -exec cp {} /usr/home/tmp/something \; I'm a novice with shell scripting myself, but what's the difference between that code and some variant thereof using a pipe and "xargs"? Are they simply two different ways of achieving the same result? Or is there some more important difference I may be overlooking? Thanks, Daniel