The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

pcat - expand and concatenate files (LEGACY)

 SYNOPSIS



pcat file...

 DESCRIPTION

The pcat utility unpacks files in the format used by pack 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:

 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 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 LANG is 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:
0
Successful completion.
>0
An error occurred.

 CONSEQUENCES OF ERRORS

Default.

 APPLICATION USAGE

The pcat utility does for packed files what cat 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

or:

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.

 SEE ALSO

pack, unpack, zcat.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]