MPE/iX Shell and Utilities Reference Manual, Vol 2

zcat(1) MPE/iX Shell and Utilities zcat(1)
NAME
zcat — uncompress and display data
SYNOPSIS
zcat –DVv [file ...]
DESCRIPTION
zcat takes one or more compressed data files as input. The data files should be compressed
with 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.
zcat is equivalent to
uncompress -c
Options
zcat accepts the following options:
–D uncompresses files that were compressed using the dictionary option of compress.
–V prints the version number of uncompress that zcat calls.
–v prints the name of each file as it is uncompressed.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 An error occurred.
Messages
See uncompress(1) for a list of error messages that zcat may produce.
PORTABILITY
All
UNIX systems.
Commands and Utilities 1-715