From owner-freebsd-questions Mon May 24 23:11:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 8EB3C155D0 for ; Mon, 24 May 1999 23:11:45 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id BAA09761; Tue, 25 May 1999 01:11:35 -0500 (CDT) (envelope-from dan) Date: Tue, 25 May 1999 01:11:35 -0500 From: Dan Nelson To: Peter Brezny Cc: freebsd-questions@FreeBSD.ORG Subject: Re: bzip2 Message-ID: <19990525011135.B9588@dan.emsphone.com> References: <000001bea663$b8ea79a0$c802040a@latitude.cyber1.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <000001bea663$b8ea79a0$c802040a@latitude.cyber1.net>; from "Peter Brezny" on Tue May 25 00:04:43 GMT 1999 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (May 25), Peter Brezny said: > i'm working on restoring just two files out of a bzip-ed file that > contains multiple directories and multiple files. > > could someone please send an example of how to do this. > > i looked through the man page for bzip but was unable to get things > working. bzip can only compress one file per .bz2 file (just like gzip). Perhaps you are thinking of a .tar.bz2 file? bunzip2 < file.tar.bz2 | tar xvf - file1 file2 Or, if you're running a new enough system, tar yxvf file.tar.bz2 file1 file2 -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message