Browsing Chinese (Simplified) translation

581 of 586 results
581.
Formats and prints ARGUMENTS under control of the FORMAT.

Options:
-v var[tab]assign the output to shell variable VAR rather than
[tab][tab]display it on the standard output

FORMAT is a character string which contains three types of objects: plain
characters, which are simply copied to standard output; character escape
sequences, which are converted and copied to the standard output; and
format specifications, each of which causes printing of the next successive
argument.

In addition to the standard format specifications described in printf(1),
printf interprets:

%b[tab]expand backslash escape sequences in the corresponding argument
%q[tab]quote the argument in a way that can be reused as shell input
%(fmt)T[tab]output the date-time string resulting from using FMT as a format
[tab] string for strftime(3)

The format is re-used as necessary to consume all of the arguments. If
there are fewer arguments than the format requires, extra format
specifications behave as if a zero value or null string, as appropriate,
had been supplied.

Exit Status:
Returns success unless an invalid option is given or a write or assignment
error occurs.
[tab] represents a tab character. Please write it exactly the same way, [tab], in your translation.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
There are leading/trailing spaces here. Each one represents a space character. Enter a space in the equivalent position in the translation.
在 FORMAT 的控制下格式化并打印 ARGUMENTS 参数。

选项:
-v var[tab]将输出赋值给 shell 变量 VAR 而不显示在标准输出上

FORMAT 是包含三种对象的字符串:简单地被拷贝到标准输出的普通字符;
被变换之后拷贝到标准输入的转义字符;以及每个都会影响到下个参数的打印的格式化声明。

在 printf(1) 中描述的标准控制声明之外,printf 解析:

%b[tab]扩展对应参数中的反斜杠转义序列
%q[tab]以可作为 shell 输入的格式引用参数
%(fmt)T[tab]以 FMT 为供给 strftime(3) 的格式输出日期时间字符串

退出状态:
返回成功,除非使用了无效的选项或者写或赋值错误发生。
Translated by Mingye Wang
Located in builtins.c:1937
581 of 586 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.