zcatuncompress and display data |
Command |
zcat -DVv
[file ...]
zcat takes one or more compressed data files as input. The
data files should be compressed with either the
compress command. If no data
files are specified on the command line, zcat reads the
standard input. You can also pass the standard input to zcat
by specifying - as one of the files on the command line.
zcat uncompresses the data of all the input files, and
writes the result on the standard output. zcat concatenates
the data in the same way cat does.
The names of compressed input files are expected to end in .Z.
If a specified input file name does not end in this suffix,
zcat automatically adds the .Z. For example, if
the command line specifies file abc, zcat looks
for abc.Z. If abc.Z is not found,
zcat uses abc with no extension.
zcat is equivalent to
uncompress -c
-Duncompresses files that were compressed using the dictionary option
of compress.
-Vprints the version number of
uncompress that
zcat calls.
-vprints the name of each file as it is uncompressed.
0Successful completion.
1Failure due to any of the following:
zcat
cannot handle
cat,
uncompress