NAME
pcat — expand and
concatenate files (LEGACY)
SYNOPSIS
pcat |
file... |
DESCRIPTION
The pcat utility unpacks files in the
format used by pack(1) and writes the unpacked form to
standard output. For each file operand, a file named file .z (or just file ,
if file ends in .z ) is unpacked.
A file is not written in its unpacked form if:
- The file cannot be opened.
- The file does not appear to be the output of pack(1) .
OPTIONS
None.
OPERANDS
The following operand is supported:
- file
- A pathname of a file to be
pcated; file can include or omit the .z suffix.
STDIN
Not used.
INPUT FILES
The input files are regular files in the format produced by the pack(1) utility.
ENVIRONMENT VARIABLES
The following environment variables may affect the execution of
pcat :
LANG- Provide a default value for the internationalisation variables that are
unset or null. If
LANGis unset or null, the corresponding value from the implementation-dependent default locale will be used. If any of the internationalisation variables contains an invalid setting, the utility will behave as if none of the variables had been defined. LC_ALL- If set to a non-empty string value, override the values of all the other internationalisation variables.
LC_CTYPE- Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments).
LC_MESSAGES- Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.
NLSPATH- Determine the location of message catalogues for the processing of LC_MESSAGES .
ASYNCHRONOUS EVENTS
Default.
STDOUT
The standard output is the concatenation of the unpacked files identified by the file operands.
STDERR
Used only for diagnostic messages.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
The following exit values are returned:
CONSEQUENCES OF ERRORS
Default.
APPLICATION USAGE
The pcat utility does for packed files
what cat(1) does for ordinary files, except that
pcat cannot be used as a filter.
Applications should migrate to the zcat utility.
EXAMPLES
To view a packed file named file .z use:
pcat file.z
pcat file
To make an unpacked copy, called
abc, of a packed file
named file .z (without destroying
file .z use: pcat file
>abc
FUTURE DIRECTIONS
None.