Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <001301c4ce80$cdd09070$55dcd40a@advancemags.com> From: "Chuck" To: cygwin AT cygwin DOT com References: <002001c4ce54$81931010$55dcd40a AT advancemags DOT com> Subject: Re: pax available? Date: Fri, 19 Nov 2004 16:43:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes I'm actually referring to pax format archives (ustar). I want to be able to unarchive files - many files - but changing one string in the name to another. I typically use it to clone databases on Solaris. I may have 15 mount points all with a subdirectory named DB1. When I extract the files, I don't want to put them into the DB1 subdirectories. I want to put them into subdirectories named DB2. Or maybe I want to restore them to different mount points. Whatever. Unless I'm misunderstanding you I'd have to do each one separately with unzip. There could be hundreds within one archive. With pax I can have the utility rename them all automatically as it extracts them with a simple command like... pax -r -s/DB1/DB2/p < filename.pax Chuck ----- Original Message ----- From: "Igor Pechtchanski" To: "Chuck" Cc: Sent: Friday, November 19, 2004 4:17 PM Subject: Re: pax available? > On Fri, 19 Nov 2004, Chuck wrote: > > > I can't find pax as a package in the cygwin setup program. Is it known under > > some other name? Is it even available for Cygwin? > > > > I need the ability to extract files from an archive to a different name and > > pax is the only archive utility I'm aware of that can do this. > > In addition to what Larry wrote: > FYI, if you mean .zip archives, "unzip -p foo.zip bar/baz/x > y" should > extract file bar/baz/x in archive foo.zip as file y in the current > directory. "unzip" is part of the (surprise, surprise) "unzip" package, > as the package search page at will tell you. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/