From owner-freebsd-current Fri Apr 20 15: 7:59 2001 Delivered-To: freebsd-current@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id D830437B423 for ; Fri, 20 Apr 2001 15:07:55 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([fec0::2e0:7dff:fe81:749d] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.22 #1) id 14qj4E-000BxT-00; Fri, 20 Apr 2001 23:07:54 +0100 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.11.3/8.11.3) id f3KM7rs29964; Fri, 20 Apr 2001 23:07:53 +0100 (BST) (envelope-from ben) Date: Fri, 20 Apr 2001 23:07:53 +0100 From: Ben Smithurst To: Jens Schweikhardt Cc: freebsd-current@freebsd.org Subject: Re: cp -d dir patch for review (or 'xargs'?) Message-ID: <20010420230753.C44121@scientia.demon.co.uk> References: <20010420235419.B1276@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010420235419.B1276@schweikhardt.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jens Schweikhardt wrote: > although there was much rejoicing, I think there's no need for a > new option to cp. Just use the toolbox, it's not too hard: > > (cat bigfilelist; echo destdir) | xargs cp > > Or even > > echo destdir >>bigfilelist > xargs cp < bigfilelist > > should do the trick. Err, neither of those will work if there are too many filenames for a single invokation of "cp" since none but the last will get the "destdir" argument. -- Ben Smithurst / ben@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message