delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/19/16:44:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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" <SkiLover AT softhome DOT net>
To: cygwin AT cygwin DOT com
References: <002001c4ce54$81931010$55dcd40a AT advancemags DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0411191613400 DOT 16712 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: pax available?
Date: Fri, 19 Nov 2004 16:43:27 -0500
MIME-Version: 1.0
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" <pechtcha AT cs DOT nyu DOT edu>
To: "Chuck" <SkiLover AT softhome DOT net>
Cc: <cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019