Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
pax(1) OSS Shell and Utilities Reference Manual
-r Reads an archive file from the standard input file.
-s replstr Modifies file-member or archive-member names specified by the pattern or file
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
file.
Any nonnull character can be used as a delimiter (/ shown here). Multiple -s flag
expressions can be specified in one command. Multiple expressions are applied in the
order specified, terminating with the first 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 files from being changed when the files are
read by pax.
-u Ignores files that are older (that have a less recent file modification time) than a preex-
isting file or archive member with the same name.
When extracting files from an archive, an archive member with the same name as a file
in the file system is extracted if the archive member is newer than the file.
When writing files to an archive, an archive member with the same name as a file in the
file system is superseded if the file is newer than the archive member.
When copying files to a destination directory, a file in the destination hierarchy is
replaced by a file in the source hierarchy or by a link to a file in the source hierarchy if
the file 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 file
(see Standard Error under DESCRIPTION).
-w Writes files to the standard output file in the specified archive format.
-x format
Specifies 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 file in a format that is different from the existing for-
mat causes pax to exit immediately with a nonzero exit value.
7−14 Hewlett-Packard Company 527188-003