Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   ar.1p    ( 1 )

создавать и поддерживать архивы библиотеки (create and maintain library archives)

Стандартный вывод (Stdout)

If the -d option is used with the -v option, the standard output format shall be:

"d - %s\n", <file>

where file is the operand specified on the command line.

If the -p option is used with the -v option, ar shall precede the contents of each file with:

"\n<%s>\n\n", <file>

where file is the operand specified on the command line, if file operands were specified, and the name of the file in the archive if they were not.

If the -r option is used with the -v option:

* If file is already in the archive, the standard output format shall be:

"r - %s\n", <file>

where <file> is the operand specified on the command line.

* If file is not already in the archive, the standard output format shall be:

"a - %s\n", <file>

where <file> is the operand specified on the command line.

If the -t option is used, ar shall write the names of the files in the archive to the standard output in the format:

"%s\n", <file>

where file is the operand specified on the command line, if file operands were specified, or the name of the file in the archive if they were not.

If the -t option is used with the -v option, the standard output format shall be:

"%s %u/%u %u %s %d %d:%d %d %s\n", <member mode>, <user ID>, <group ID>, <number of bytes in member>, <abbreviated month>, <day-of-month>, <hour>, <minute>, <year>, <file>

where:

<file> Shall be the operand specified on the command line, if file operands were specified, or the name of the file in the archive if they were not.

<member mode> Shall be formatted the same as the <file mode> string defined in the STDOUT section of ls, except that the first character, the <entry type>, is not used; the string represents the file mode of the file in the archive at the time it was added to or replaced in the archive.

The following represent the last-modification time of a file when it was most recently added to or replaced in the archive:

<abbreviated month> Equivalent to the format of the %b conversion specification format in date.

<day-of-month> Equivalent to the format of the %e conversion specification format in date.

<hour> Equivalent to the format of the %H conversion specification format in date.

<minute> Equivalent to the format of the %M conversion specification format in date.

<year> Equivalent to the format of the %Y conversion specification format in date.

When LC_TIME does not specify the POSIX locale, a different format and order of presentation of these fields relative to each other may be used in a format appropriate in the specified locale.

If the -x option is used with the -v option, the standard output format shall be:

"x - %s\n", <file>

where file is the operand specified on the command line, if file operands were specified, or the name of the file in the archive if they were not.