1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
\r
4 <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
\r
5 <TITLE>-so (write data to stdout) switch</TITLE>
\r
6 <LINK href="style.css" rel="stylesheet" type="text/css">
\r
11 <H1>-so (write data to stdout) switch</H1>
\r
13 <P>Causes 7-Zip to write output data to stdout (standard output stream).</P>
\r
17 <PRE class="syntax">
\r
23 <PRE class="example">
\r
24 7z x archive.gz -so > Doc.txt
\r
27 <P>decompresses <SPAN class="filename">archive.gz</SPAN>
\r
28 archive to output stream and then redirects that stream to
\r
29 <SPAN class="filename">Doc.txt</SPAN> file.</P>
\r
32 <PRE class="example">
\r
33 7z a dummy -tgzip -so Doc.txt > archive.gz
\r
36 <P>compresses the <SPAN class="filename">Doc.txt</SPAN> file to the 7-Zip standard
\r
37 output stream and writes that stream to
\r
38 <SPAN class="filename">archive.gz</SPAN> file.</P>
\r
40 <H4>Commands that can be used with this switch</H4>
\r
43 <A href="../commands/add.htm">a (Add)</A>,
\r
44 <A href="../commands/extract.htm">e (Extract)</A>,
\r
45 <A href="../commands/update.htm">u (Update)</A>,
\r
46 <A href="../commands/extract_full.htm">x (Extract with full paths)</A>
\r