7zip: how to extract to std output?

Posted by Jason S on Super User See other posts from Super User or by Jason S
Published on 2010-06-03T15:59:33Z Indexed on 2010/06/03 16:04 UTC
Read the original article Hit count: 347

Filed under:

I have 7z 4.65 and am trying to extract a single file to standard output. The 7z command-line help says -so is the command-line parameter to extract to standard output, but when I try this:

>>> 7z e -so dist\dlogpkg.jar META-INF/MANIFEST.MF

7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03
Error:
I won't write data and program's messages to same terminal

how can I fix this? There doesn't seem to be a command line param to suppress the normal 7z stdout messages.

(edit: the equivalent operation in "unzip" would be

unzip -p dist\dlogpkg.jar META-INF/MANIFEST.MF

which works fine. But I'd like to use 7z for various reasons.)

© Super User or respective owner

Related posts about 7zip