This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pax available?


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" <pechtcha@cs.nyu.edu>
To: "Chuck" <SkiLover@softhome.net>
Cc: <cygwin@cygwin.com>
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 <http://cygwin.com/packages/> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]