Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
User Commands (p - r) pack(1)
EXAMPLES
1. To compress files, enter:
pack chap1 chap2
This command compresses the files chap1 and chap2, replacing them with files named
chap1.z and chap2.z. The pack command displays the percent decrease in size for each
file.
2. To display statistics about the amount of compression done, enter:
pack - chap1 - chap2
This command compresses the files chap1 and chap2 and displays statistics about chap1
but not about chap2. The first - (dash) turns on the statistic display, and the second -
(dash) turns it off.
NOTES
If you try to use pack on a very small file, you might receive the following message:
pack filename: No saving -- file unchanged
EXIT VALUES
The pack command returns the following values:
0 (zero) The command completed successfully and all files were packed.
>0 An error occurred because some of the files could not be packed. The number
returned is the number of files that the pack command could not pack.
RELATED INFORMATION
Commands: cat(1), compress(1), uncompress(1), unpack(1), zcat(1).
STANDARDS CONFORMANCE
This command conforms to the XPG4 Version 2 specification with extensions.
527188-003 Hewlett-Packard Company 7−3