Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

pax(1) OSS Shell and Utilities Reference Manual
-r Reads an archive le from the standard input le.
-s replstr Modies le-member or archive-member names specied by the pattern or le
operands according to the substitution expression replstr and using the syntax of the ed
command. The substitution expression has the following format:
-s /old/new/[gp]
where (as in the ed command) old is a basic regular expression and new is the replace-
ment string to be inserted in place of strings that match the regular expression. The
string new can contain an & (ampersand), \n (where n is a digit), back references, or
subexpression matching. A g following new/ replaces all matches. A p following new/
causes successful substitutions to be written to the standard error
le.
Any nonnull character can be used as a delimiter (/ shown here). Multiple -s ag
expressions can be specied in one command. Multiple expressions are applied in the
order specied, terminating with the rst successful substitution. File-member or
archive-member names that are replaced by an empty string are ignored when reading
and writing archives.
-t Prevents the access times of the archived les from being changed when the les are
read by pax.
-u Ignores les that are older (that have a less recent le modication time) than a preex-
isting le or archive member with the same name.
When extracting les from an archive, an archive member with the same name as a le
in the le system is extracted if the archive member is newer than the le.
When writing les to an archive, an archive member with the same name as a le in the
le system is superseded if the le is newer than the archive member.
When copying les to a destination directory, a le in the destination hierarchy is
replaced by a le in the source hierarchy or by a link to a le in the source hierarchy if
the le in the source hierarchy is newer.
-v In list mode, -v produces a table of contents (see Standard Output under DESCRIP-
TION). Otherwise, -v writes the archive member pathnames to the standard error le
(see Standard Error under DESCRIPTION).
-w Writes les to the standard output le in the specied archive format.
-x format
Species the output archive format. The pax command recognizes the following for-
mats:
cpio
Extended cpio interchange format.
ustar
Extended tar interchange format.
If this option is omitted, ustar format is used.
Any attempt to append an archive le in a format that is different from the existing for-
mat causes pax to exit immediately with a nonzero exit value.
714 Hewlett-Packard Company 527188-004