-so (write data to stdout) switch

Makes 7-Zip to use stdout (standard output stream).

Syntax

-so

Examples

7z x archive.gz -so > Doc.txt

decompresses archive.gz archive to output stream and writes that stream to Doc.txt file.

7z a dummy -tgzip -so Doc.txt > archive.gz

compresses Doc.txt file to output stream and writes that stream to archive.gz file.

Commands that can be used with this switch

a (Add), e (Extract), u (Update), x (Extract with full paths)