Our supplier: USPS !

Thank You!

Len Sasso
System Administrator
General Dynamics Information Technology
327 Columbia TPKE
Rensselaer, NY 12144

Phone: (518) 257-4209
Cell: (518) 894-0879
Fax: (518) 257-4300
len.sa...@gdit.com
URL: www.gdit.com




-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Paul Gilmartin
Sent: Saturday, March 2, 2019 1:10 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: PAX Command or the TAR commands

On Sat, 2 Mar 2019 17:20:34 +0000, Sasso, Len wrote:
>
>I want to use either the PAX Command or the TAR command to extract a file from 
>a TAR file and place it in the current directory.
>
>       Details:
>       Name of TAR File: Test.tar
>       Name of file to be Extracted (including path within the Tar
> file):  /epf-zip4natl/z4trans/z4trans.zip
>
Ummm... Your supplier archived a fully-qualified directory name.  That's 
discourteous; it complicates extraction.

>       Current folder: /MyFolder
>
And you're working in a root-level directory?  That's surprising.

>       Expected Result: /MyFolder/z4trans.zip
>
>Any help you could provide would be greatly appreciated.
>
I tested the following, avoiding fully-qualified paths.  Hammer and file to fit:

582 $ pax -r -s#epf-zip4natl/z4trans#MyFolder# -vv '*/*/z4trans.zip' <Test.tar
-rw-r--r--  1 paulgilm paulgilm        29 Mar  2 10:39 MyFolder/z4trans.zip
pax: ustar vol 1, 4 files, 10240 bytes read, 0 bytes written.
583 $
583 $ ls -al My*
total 12
drwxr-xr-x 2 paulgilm paulgilm 4096 Mar  2 10:59 .
drwxr-xr-x 4 paulgilm paulgilm 4096 Mar  2 10:59 ..
-rw-r--r-- 1 paulgilm paulgilm   29 Mar  2 10:39 z4trans.zip
584 $

See:
    
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/r4paxsh.htm

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

This electronic message transmission contains information from CSRA that may be 
attorney-client privileged, proprietary or confidential. The information in 
this message is intended only for use by the individual(s) to whom it is 
addressed. If you believe you have received this message in error, please 
contact me immediately and be aware that any use, disclosure, copying or 
distribution of the contents of this message is strictly prohibited. NOTE: 
Regardless of content, this email shall not operate to bind CSRA to any order 
or other contract unless pursuant to explicit written agreement or government 
initiative expressly permitting the use of email for such purpose.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to