delorie.com/archives/browse.cgi | search |
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: | <419F006A.7090703@x-ray.at> |
Date: | Sat, 20 Nov 2004 09:29:30 +0100 |
From: | Reini Urban <rurban AT x-ray DOT at> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a4) Gecko/20040927 |
MIME-Version: | 1.0 |
To: | Chuck <SkiLover AT softhome DOT net> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: pax available? |
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> <001301c4ce80$cdd09070$55dcd40a AT advancemags DOT com> |
In-Reply-To: | <001301c4ce80$cdd09070$55dcd40a@advancemags.com> |
X-IsSubscribed: | yes |
Chuck schrieb: > 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 pax is in the package paxutils, which is not yet in cygwin. http://directory.fsf.org/paxutils.html Mark H. Colburn <markcol AT jhereg DOT com> created another `pax' program in 1989. The 1.1 version was published in comp.sources.unix, volume 17. From a 2.0 OS/2 port, Ian Stewartson made 2.1 and is working on version 2.2. ftp://sunsite.unc.edu/pub/Linux/utils/compress/pax-2.1.tar.gz However it's straightforward to build paxutils. (into /usr/local) cd /usr/src wget ftp://alpha.gnu.org/pub/gnu/paxutils/paxutils-2.4h.tar.gz tar xfz paxutils-2.4h.tar.gz cd paxutils-2.4h ./configure make && make check make install DESTDIR=/usr/src/paxutils-2.4h/.inst several tar tests will fail: 44. ./t-create.m4:3 ok 45. ./t-create.m4:14 ignored near `t-create.m4:14' 46. ./t-create.m4:40 ok 47. ./t-create.m4:56 ok 48. ./t-create.m4:76 FAILED near `t-create.m4:120' 49. ./t-extract.m4:3 ok 50. ./t-extract.m4:17 ignored near `t-extract.m4:17' 51. ./t-extract.m4:37 ok 52. ./t-extract.m4:53 ok 53. ./t-extract.m4:68 ok 54. ./t-exclude.m4:3 ok 55. ./t-append.m4:3 ok 56. ./t-delete.m4:3 FAILED near `t-delete.m4:16' 57. ./t-delete.m4:20 ok 58. ./t-incremen.m4:3 FAILED near `t-incremen.m4:23' 59. ./t-incremen.m4:27 ok 60. ./t-gzip.m4:3 ok 61. ./t-volume.m4:3 ok mv: cannot move `stderr2' to `stderr': Permission denied ... Note that paxutils includes unstable versions of tar and cpio. That might be the explanation why. I have another version from the MS resource kit: $ pax --help c:\WINNT\system32\pax.exe: illegal option--- Usage: c:\WINNT\system32\pax.exe -[cimopuvy] [-f archive] [-s replstr] [-t device] [pattern...] c:\WINNT\system32\pax.exe -r [-cimopuvy] [-f archive] [-s replstr] [-t device] [pattern...] c:\WINNT\system32\pax.exe -w [-adimuvy] [-b blocking] [-f archive] [-s replstr] [-t device] [-x format] [pathname...] c:\WINNT\system32\pax.exe -r -w [-ilmopuvy] [-s replstr] [pathname...] directory For more information on c:\WINNT\system32\pax.exe syntax, see Command Reference Help in the Windows Help file. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |