From owner-freebsd-stable Mon Jul 16 22:31:56 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mtiwmhc23.worldnet.att.net (mtiwmhc23.worldnet.att.net [204.127.131.48]) by hub.freebsd.org (Postfix) with ESMTP id DFD6E37B403; Mon, 16 Jul 2001 22:31:51 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.190]) by mtiwmhc23.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010717053150.SBLB1777.mtiwmhc23.worldnet.att.net@worldnet.att.net>; Tue, 17 Jul 2001 05:31:50 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 5778450B93; Tue, 17 Jul 2001 01:35:39 -0400 (EDT) Date: Tue, 17 Jul 2001 01:35:39 -0400 From: parv To: Dima Dorfman Cc: Andreas Klemm , freebsd-stable@FreeBSD.ORG Subject: Re: of shell, find, and (g)xargs (Re: mass uninstall all ports?) Message-ID: <20010717013539.A63342@moo.holy.cow> Mail-Followup-To: Dima Dorfman , Andreas Klemm , freebsd-stable@FreeBSD.ORG References: <20010716120325.A1149@moo.holy.cow> <20010717052214.E58793E28@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010717052214.E58793E28@bazooka.unixfreak.org>; from dima@unixfreak.org on Mon, Jul 16, 2001 at 10:22:14PM -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG on Jul 17 01:27, i got this from Dima... > parv writes: > > ...but since freebsd's xargs doesn't support anything like gnu xargs' '-i' > > Yes it does. Here's an excerpt from xargs(1): > > -J replstr > If this option is specified, xargs will use the data read from > standard input to replace the first occurrence of replstr instead > of appending that data after all other arguments. This option ... > > /bin/ls -1d [A-Z]* | xargs -J [] cp -rp [] destdir > > It's not compatible with -i, but it would've served your purpose. not over here. here is the synopsis from man page: SNYOPSIS xargs [-0] [-t] [-n number [-x]] [-s size] [utility [argument ...]] may be it was been added after i made the world (before jun 24, 2001). -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message