pax.1 (2010 09)

p
pax(1) pax(1)
Copying Files
The -r and -w flags can be specified with the
-H or -L, -d, -i, -k
, -l, -o, -p, -n, -s
, -t, -u, -v,
and
-X flags and with the file arguments. A directory argument must be specified.
List Mode Format Specifications
In
list mode with the -o listopt= format option, the format argument shall be applied for each
selected file. The pax utility shall append a newline to the
listopt output for each selected file. The
format argument shall be used as the format string described in the Base Definitions volume of IEEE Std
1003.1-2001, Chapter 5, File Format Notation, with the exceptions 1. through 5. defined in the
EXTENDED DESCRIPTION section of
printf, plus the following exceptions:
1. through 5. Defined in the EXTENDED DESCRIPTION section of
printf.
6. The sequence
(keyword
) can occur before a format conversion specifier. The conversion argument is
defined by the value of keyword. The implementation shall support the following keywords:
Any of the Field Name entries in
ustar Header Block and Octet-Oriented
cpio Archive Entry.
Any keyword defined for the extended header in pax Extended Header .
For example, the sequence "%(charset)s" is the string value of the name of the character set in the
extended header. Refer to the section EXTENDED DESCRIPTION for the list of keywords in
each format.
The result of the keyword conversion argument shall be the value from the applicable header field
or extended header, without any trailing NULL characters.
7. An additional conversion specifier character,
T, shall be used to specify time formats. The
T conver-
sion specifier character can be preceded by the
(keyword=subformat ) sequence where subformat is
a date format as defined by date operands. The default keyword shall be
mtime and the default sub-
format shall be:
%b %e %H:%M %Y
8. An additional conversion specifier character, M, shall be used to specify the file mode string as
defined in ls Standard Output. If (keyword ) is omitted, the mode keyword shall be used. For exam-
ple, %.1M writes the single character corresponding to the entry_type field of the
ls -l command
9. An additional conversion specifier character,
D, shall be used to specify the device for block or special
files, if applicable. If not applicable, and (keyword) is specified, then this conversion shall be
equivalent to %(keyword )u. If not applicable, and (keyword ) is omitted, then this conversion shall
be equivalent to space.
10. An additional conversion specifier character,
F, shall be used to specify a pathname. The
F conver-
sion character can be preceded by a sequence of comma-separated keywords:
(keyword[,keyword] ...)
The values for all the keywords that are non-null shall be concatenated together, each separated by a
’/’. The default shall be (path) if the keyword path is defined; otherwise, the default shall be
(prefix,name).
11. An additional conversion specifier character,
L, shall be used to specify a symbolic line expansion. If
the current file is a symbolic link, then %L shall expand to:
%s -> %s, value_of_keyword, contents_of_link
Otherwise, the %L conversion specification shall be the equivalent of %F.
EXTENDED DESCRIPTION
cpio Interchange Format
The octet-oriented
cpio archive format shall be a series of entries, each comprising a header that
describes the file, the name of the file, and then the contents of the file. The fields of the cpio header
are described below:
c_magic Identify the archive as being a transportable archive by containing the identifying value
"070707".
c_dev,c_ino
Contains values that uniquely identify the file within the archive. No files contain the same
pair of c_dev and c_ino values unless they are links to the same file.
8 Hewlett-Packard Company 8 HP-UX 11i Version 3: September 2010