From owner-freebsd-questions@FreeBSD.ORG Tue Dec 6 11:22:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A05ED16A41F for ; Tue, 6 Dec 2005 11:22:49 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC25543D64 for ; Tue, 6 Dec 2005 11:22:48 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id jB6BMgMf000790; Tue, 6 Dec 2005 13:22:42 +0200 Received: by flame.pc (Postfix, from userid 1001) id D2DFD11562; Tue, 6 Dec 2005 13:21:59 +0200 (EET) Date: Tue, 6 Dec 2005 13:21:59 +0200 From: Giorgos Keramidas To: user Message-ID: <20051206112159.GB1602@flame.pc> References: <20051205231316.GA54068@Grumpy.DynDNS.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: David Kelly , freebsd-questions@freebsd.org Subject: Re: cp/mv/etc : argument list too long ... I am sick of this 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, 06 Dec 2005 11:22:49 -0000 On 2005-12-05 18:44, user wrote: > On Mon, 5 Dec 2005, David Kelly wrote: > > On Mon, Dec 05, 2005 at 05:56:22PM -0500, user wrote: > > [...] > > > - since I live in 2005, what can I do to my FreeBSD system to upgrade > > > it to handle the directories I have ? How do I fix this so I can do > > > normal, simple command lines instead of butchered ridiculous hacks > > > like above ? > > > > Upgrade the user. Start with the man page to xargs(1) as you are far > > from the first to have this problem. > > > > Is well and good that there be some limit to how much data one can pack > > on the command line and incoming arglist in an application's > > environment else fumble fingers could cause major havoc. IIRC its > > currently 10k bytes. > > > Yes, in addition to for loops, I also know how to use xargs. I can use > find. I can do all sorts of trickery. > > What I want to know is, how can I just use cp ? Move a level upwards. If this fails: $ cd ~/foo $ mkdir ~/bar $ cp * ~/bar this has better chances of working as expected: $ cd ~ $ cp -Rp foo bar