From owner-freebsd-current Sun Apr 22 10:10:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.webmonster.de (datasink.webmonster.de [194.162.162.209]) by hub.freebsd.org (Postfix) with SMTP id 328ED37B423 for ; Sun, 22 Apr 2001 10:10:03 -0700 (PDT) (envelope-from karsten@rohrbach.de) Received: (qmail 95159 invoked by uid 1000); 22 Apr 2001 17:10:24 -0000 Date: Sun, 22 Apr 2001 19:10:24 +0200 From: "Karsten W. Rohrbach" To: Brian Somers Cc: Dima Dorfman , Garance A Drosihn , "John W. De Boskey" , Current List Subject: Re: cp -d dir patch for review (or 'xargs'?) Message-ID: <20010422191024.A92712@mail.webmonster.de> Mail-Followup-To: "Karsten W. Rohrbach" , Brian Somers , Dima Dorfman , Garance A Drosihn , "John W. De Boskey" , Current List References: <200104201029.f3KATF533872@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200104201029.f3KATF533872@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Fri, Apr 20, 2001 at 11:29:15AM +0100 X-Arbitrary-Number-Of-The-Day: 42 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers(brian@Awfulhak.org)@2001.04.20 11:29:15 +0000: > find something | xargs cp {} target_directory > > or > > find something | xargs -i '[]' cp '[]' target_directory > or find something -exec cp {} target_directory \; from find(1): -exec utility [argument ...]; True if the program named utility returns a zero value as its ex- it status. Optional arguments may be passed to the utility. The expression must be terminated by a semicolon (``;''). If the string ``{}'' appears anywhere in the utility name or the argu- ments it is replaced by the pathname of the current file. Utility will be executed from the directory from which find was executed. /k -- > who | grep -i blonde | date; cd ~; unzip; touch; finger; mount;\ > gasp; yes; uptime; umount; sleep KR433/KR11-RIPE -- http://www.webmonster.de -- ftp://ftp.webmonster.de [Key] [KeyID---] [Created-] [Fingerprint-------------------------------------] GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE DF22 3340 4F4E 2964 BF46 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message