From owner-freebsd-questions Sat Jan 2 23:11:38 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA22271 for freebsd-questions-outgoing; Sat, 2 Jan 1999 23:11:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from guru.phone.net (guru.phone.net [209.157.82.120]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA22234 for ; Sat, 2 Jan 1999 23:11:31 -0800 (PST) (envelope-from mwm@phone.net) Received: (qmail 2043 invoked by uid 100); 3 Jan 1999 07:11:07 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 3 Jan 1999 07:11:07 -0000 Date: Sat, 2 Jan 1999 23:11:07 -0800 (PST) From: Mike Meyer To: freebsd-questions@FreeBSD.ORG Subject: Re: How do I untar multiple *.tar files? 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 With a loop. I'm not sure what the last argument to tar is, but if it's where the tar files live, it'd look like this in an sh variant: for f in /cdrom/dir/*.*; do; tar xv $f; done If you do this often enough, a function for that purpose might be appropriate. Add this to your startup file (needs to be an sh shell variant, not csh): untardir() { for f in $1/*.* do untar $f done } Date: Sat, 2 Jan 1999 23:55:07 -0600 (CST) > From: jahanur > To: freebsd-questions@FreeBSD.ORG > Subject: How do I untar multiple *.tar files? > > Hi Everybody, > I am new to Unix. > > Is there any command to untar a lot of *.tar files at one command. > > I have tried doing #tar xv *.* /cdrom/dir/ > > It does not work. Please help! > > Thanks > > Jahanur > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message