From owner-freebsd-questions Wed Jul 15 18:20:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA20146 for freebsd-questions-outgoing; Wed, 15 Jul 1998 18:20:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scifair.acadiau.ca (scifair.acadiau.ca [131.162.160.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA20140 for ; Wed, 15 Jul 1998 18:20:09 -0700 (PDT) (envelope-from miker@scifair.acadiau.ca) Received: from localhost (miker@localhost) by scifair.acadiau.ca (8.8.5/8.8.5) with SMTP id WAA25286; Wed, 15 Jul 1998 22:19:16 -0300 (ADT) Date: Wed, 15 Jul 1998 22:19:16 -0300 (ADT) From: Michael Richards To: Jeremy Shaffner cc: Thomas Dean , questions@FreeBSD.ORG Subject: Re: copying many files at once In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ugh. I guess I forgot to mention that they are small files, but 60,000 of them add up. There are about 4 gigs of files. I ended up piping ls through a series of awk and grep to give myself a shell script that moved them over in small enough chunks... Someone mentioned xargs, a proggie I forgot about from my old linux days! A little know solution. Now that I don't have a failing hard drive worth of files to deal with... -Mike On Tue, 14 Jul 1998, Jeremy Shaffner wrote: > Seems like alot of work. Just tar it up, and pipe it back to tar and > into the destination. > > On Sun, 12 Jul 1998, Thomas Dean wrote: > > > foreach i ( a b c d e f g h i j 0 1 2 3 4 5 6 7 8 9 ) > > > mv ../page${i}* . > > > end > > > foreach i ( A B C D E F G H I J ) ) > > > mv ../page${i}* . >& /dev/null > > > end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message