From owner-freebsd-questions Mon Oct 29 13:33:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdsl-216-36-101-146.dsl.chi.megapath.net (sdsl-216-36-101-146.dsl.chi.megapath.net [216.36.101.146]) by hub.freebsd.org (Postfix) with SMTP id 6625637B401 for ; Mon, 29 Oct 2001 13:33:44 -0800 (PST) Received: (qmail 57174 invoked from network); 29 Oct 2001 21:34:02 -0000 Received: from apu.five.sight (HELO apu.five.sight.fivesight.com) (lucas@192.168.0.102) by wiggum.five.sight with SMTP; 29 Oct 2001 21:34:02 -0000 From: Lucas Bergman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15325.52042.88160.224542@apu.five.sight> Date: Mon, 29 Oct 2001 15:34:02 -0600 To: "Alson van der Meulen" , lists@natserv.com Cc: FreeBSD Questions List Subject: Re: Archiving large number of files In-Reply-To: <20011029212551.G30280@md2.mediadesign.nl> References: <20011029151306.D53339-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> <20011029151557.Y51329-100000@zoraida.natserv.net> <20011029212551.G30280@md2.mediadesign.nl> X-Mailer: VM 6.96 under Emacs 20.7.2 Reply-To: lucas@fivesight.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alson van der Meulen wrote: > Francisco Reyes wrote: > > Dru wrote: > > > Francisco Reyes wrote: > > > > > > > I have several directories with 20,000+ files which I need to > > > > archive. I have been trying tar+Gzip, but the files are too > > > > many for tcsh to handle in one pass any suggestions on how to > > > > go about this? > > > > > > I think piping through "xargs" would do the trick. > > > > Could you give me a quick example of how xargs work? > > find .|xargs tar cf tarball.tar Careful. If xargs has to spawn more than one 'tar' process, then this is going to overwrite tarball.tar. Better to do $ rm tarball.tar $ find . | xargs tar rf tarball.tar N.B.: this assumes there are no files or directories with whitespace in their names. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message