Linux and Unix pcat command
The pcat command does for packed files what cat does for ordinary files, except that pcat cannot be used as a filter. The specified files are unpacked and written to the standard output. pcat returns as its exit status the number of files it failed to unpack.
Failure may occur if:
- the file cannot be opened, or if
- the file does not appear to be the output of pack.
Print the uncompressed contents of the compressed file myfile.txt.z to the standard output.
pcat would also look for the file myfile.txt.z if the .z extension was omitted. For instance,
Also prints the uncompressed contents of the file myfile.txt.z, if it exists.