On Fri, 3 Apr 2009 12:34:36 -0500, John McKown wrote:
>
>>>The "jar" command (JAVA archive tool) will extract from stdin, which can be
>>>a network stream. The jar format is just another name for ZIP, so it should
>>>work.
>>
>>I've used jar to extract to binary; will it extract to EBCDIC?
>
>Not as far as I can tell. However, it might be possible to "post process" by
>doing something like:
>
>wget -O - http://url/file.zip |\ #get the file
>jar xv |\ #unzip and list names to stdout
>cut -d ':' -f 2|\ #remove prefix output
>sed 's/^ //' |\ #remove extra blank at the start of the filename
>while read i;do a2e "$i";done
>
(Doesn't that work better without the backslashes?)

Ah, but now you're no longer streaming; you've resigned
yourself to unpacking the entire archive to a temporary
hierarchy.  Better, then, to download the .ZIP and use
"unzip -aa", which unzips text files to EBCDIC.

(If this were ASSEMBLER-LIST, we'd be discussing whether
XR, SR, or SLR is the best way to clear a register.)

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to