HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)

p
pax(1) pax(1)
whereas in the ed command, old is a basic regular expression and new can contain an
&
(ampersand), \n (n is a digit) back references, or subexpression matching. The old string
can also contain newline characters.
Any non-null character can be used as a delimiter (the
/ (slash) character is the delimiter
in the previous format). Multiple
-s flag expressions can be specified; the expressions are
applied in the order specified, terminating with the first successful substitution. The
optional trailing g character performs as in the
ed command. The optional trailing p
character causes successful substitutions to be written to the standard error. File-member
or archive-member names that substitute to the empty string are ignored when reading
and writing archives.
-t Causes the access times of the archived files to be the same as they were before being read
by the pax command.
-u Ignores files that are older (having a less recent file modification time) than a preexisting
file or archive member with the same name.
When extracting files (-r flag), 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 file (
-w flag), 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 (-rw flags), the file in the destination hierar-
chy is replaced by the file in the source hierarchy or by a link to the file in the source
hierarchy if the file in the source hierarchy is newer.
-v Writes information about the process. If neither the -r or -w
flags are specified, the -v
flag produces a verbose table of contents that resembles the output of ls -l;
otherwise,
archive-member pathnames are written to standard error.
-w Writes files to the standard output in the specified archive format.
-x format Specifies the output archive format. The pax command recognizes the following formats:
cpio Extended cpio interchange format. The default blocking value for this format for
character special archive files is 5120. Blocking values from 512 to 32,256 in incre-
ments of 512 are supported.
pax The pax interchange format. See IEEE Std 1003.1, 2003 Edition. The default
block size for this format for character special archive files shall be 5120. Blocking
values from 512 to 32,256 in increments of 512 are supported.
This is an extended ustar format. The pax format should be used for archiving
and extracting files having one or more of the following properties: size 8GB or
more, UID or GID greater than 2097151, user or group names longer than 31 char-
acters, pathname longer than 256 characters or link name longer than 100 charac-
ters. Archives of this format are reported as "USTAR format archive extended" in
the read and list mode when the -v (verbose) flag is specified in the com-
mand line.
ustar Extended tar interchange format. This is the default output archive format.
The default blocking value for this format for character special archive files is
10240. Blocking values from 512 to 32,256 in increments of 512 are supported.
Any attempt to append to an archive file in a format different from the existing archive for-
mat causes the pax command to exit immediately with a nonzero exit status.
-X When traversing the file hierarchy specified by a pathname, the pax command does not
descend into directories that have a different device ID.
-y Prompts interactively for the disposition of each file. Substitutions specified by
-s flags
are performed before you are prompted for disposition. An EOF marker or an input line
starting with the character
q causes pax to exit. Otherwise, an input line starting with
anything other than y causes the file to be ignored. This flag cannot be used in conjunction
with the -i flag.
110 Hewlett-Packard Company 6 HP-UX 11i Version 3: February 2007