16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. . A character in the format string, in any context other than a flag of a<br />

conversion specification, is treated as an ordinary character that is copied to<br />

the output.<br />

2. In addition to the escape sequences \\,\a, \b, \f, \n, \r, \t, and \v, the escape<br />

sequence \ddd, where ddd is a one-, two-, or three-digit octal number, is<br />

written as a byte with the numeric value specified by the octal number.<br />

3. Output from the d or u conversion specifiers is not preceded or followed with s<br />

not specified by the format operand.<br />

4. Output from the o conversion specifier is not preceded with zeros that are not<br />

specified by the format operand.<br />

5. The sequence (keyword) can occur before a format conversion specifier. The<br />

conversion argument is defined by the value of keyword. The following<br />

keywords are supported:<br />

Any of the Field Name entries in ustar Header Block and Octet-Oriented cpio<br />

Archive Entry. The implementation supports the cpio keywords without the<br />

leading c_ in addition to the form required by Values for cpio c_ mode Field.<br />

Any keyword defined for the extended header in pax Extended Header.<br />

Any keyword provided as an implementation-defined extension within the<br />

extended header defined in pax Extended Header. For example, the sequence<br />

″%(charset)s″ is the string value of the name of the character set in the<br />

extended header.<br />

To ensure proper data display be sure to use the proper conversion specifier<br />

character for the field being displayed for numeric data. For example, the size<br />

field on z/<strong>OS</strong> systems id often a long long data type. Attempting to display the<br />

size field using a conversion specifier for a smaller data type, for example %d,<br />

will result in a zero being displayed instead of the contents of the size field.<br />

The result of the keyword conversion argument is the value from the applicable<br />

header field or extended header, without any trailing NULs. All keyword values<br />

used as conversion arguments are translated from the UTF -8 encoding to the<br />

character set appropriate for the local file system, user database, and so on,<br />

as applicable.<br />

6. . An additional conversion specifier character, T, is used to specify time<br />

formats. The T conversion specifier character can be preceded by the<br />

sequence (keyword=subformat), where subformat is a date format as defined<br />

by date operands. The default keyword is mtime and the default subformat is:<br />

%b %e %H:%M %Y<br />

7. An additional conversion specifier character, M, is used to specify the file mode<br />

string as defined in ls Standard Output. If (keyword) is omitted, the mode<br />

keyword is used. For example, %.1M writes the single character corresponding<br />

to the entry type field of the ls -l command.<br />

8. An additional conversion specifier character, D, is used to specify the device<br />

for block or special files, if applicable, in an implementation-defined format the<br />

major and minor devices for character special files, in the format<br />

″devmajor,devminor″. If not applicable, and (keyword) is specified, then this<br />

conversion is equivalent to %(keyword)u. If not applicable, and (keyword) is<br />

omitted, then this conversion is equivalent to .<br />

9. An additional conversion specifier character, F, is used to specify a path name.<br />

The F conversion character can be preceded by a sequence of<br />

comma-separated keywords:<br />

(keyword[,keyword] ... )<br />

pax<br />

Chapter 2. Shell command descriptions 497

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!