HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)
p
pax(1) pax(1)
are specified, the format strings shall be considered a single, concatenated string,
evaluated in command line order.
times
(Applicable only to the -x pax format.) When used in
write or copy mode, pax
shall include atime and mtime extended header records for each file. See pax
Extended Header File Times.
In addition to these keywords, if the
-x pax format is specified, any of the keywords and
values defined in pax Extended Header can be used in
-o option-arguments, in either of
two modes:
keyword=value
When used in write or copy mode, these keyword/value pairs shall be included at
the beginning of the archive as typeflag g
global extended header records. When
used in
read or list mode, these keyword/value pairs shall act as if they had been
at the beginning of the archive as typeflag g
global extended header records.
keyword:=value
When used in write or copy mode, these keyword/value pairs shall be included as
records at the beginning of a typeflag x extended header for each file. (This shall
be equivalent to the equal-sign form except that it creates no typeflag g global
extended header records.) When used in read or list mode, these keyword/value
pairs shall act as if they were included as records at the end of each extended header;
thus, they shall override any global or file-specific extended header record keywords of
the same names. For example, in the command below, the group name will be forced
to a new value for all files read from the archive:
pax -r -o"
gname:=mygroup,
" <archive
The precedence of -o keywords over various fields in the archive is described in pax
Extended Header Keyword Precedence.
-p string Specifies one or more file characteristics to be retained or discarded on extraction. The
string argument consists of the characters a, e, m, o, and p
. Multiple characteristics can
be concatenated within the same string and multiple
-p flags can be specified. The
specification flags have the following meanings:
a Does not retain file-access times.
e Retains the user ID, group ID, access permission, access time, and modification time.
m Does not retain file-modification times.
o Retains the user ID and the group ID.
p Retains the access permission.
Note that "retain" means that an attribute stored in the archive is given to the extracted
file, subject to the permissions of the invoking process; otherwise, the attribute is deter-
mined as part of the normal file creation action.
If neither the e nor the o flag is specified, or the user ID and group ID are not retained,
the pax command does not set the S_ISUID and S_ISGID bits of the access permis-
sion. If the retention of any of these items fails, the pax command writes a diagnostic mes-
sage to standard error. Failure to retain any of the items affects the exit status, but does
not cause the extracted file to be deleted. If specification flags are duplicated or conflict with
each other, the ones given last shall take precedence. For example, if -p eme is specified,
file-modification times are retained.
-r Reads an archive file from the standard input.
-s Modifies file-member or archive-member names specified by the pattern or file arguments
according to the substitution expression replstr, using the syntax of the
ed command. The
substitution expression has the following format:
-s/old/new/[gp]
HP-UX 11i Version 3: February 2007 − 5 − Hewlett-Packard Company 109