Browsing Chinese (Simplified) translation

505 of 547 results
505.
Read a line from the standard input and split it into fields.

Reads a single line from the standard input, or from file descriptor FD
if the -u option is supplied. The line is split into fields as with word
splitting, and the first word is assigned to the first NAME, the second
word to the second NAME, and so on, with any leftover words assigned to
the last NAME. Only the characters found in $IFS are recognized as word
delimiters.

If no NAMEs are supplied, the line read is stored in the REPLY variable.

Options:
-a array[tab]assign the words read to sequential indices of the array
[tab][tab]variable ARRAY, starting at zero
-d delim[tab]continue until the first character of DELIM is read, rather
[tab][tab]than newline
-e[tab][tab]use Readline to obtain the line in an interactive shell
-i text[tab]Use TEXT as the initial text for Readline
-n nchars[tab]return after reading NCHARS characters rather than waiting
[tab][tab]for a newline, but honor a delimiter if fewer than NCHARS
[tab][tab]characters are read before the delimiter
-N nchars[tab]return only after reading exactly NCHARS characters, unless
[tab][tab]EOF is encountered or read times out, ignoring any delimiter
-p prompt[tab]output the string PROMPT without a trailing newline before
[tab][tab]attempting to read
-r[tab][tab]do not allow backslashes to escape any characters
-s[tab][tab]do not echo input coming from a terminal
-t timeout[tab]time out and return failure if a complete line of input is
[tab][tab]not read withint TIMEOUT seconds. The value of the TMOUT
[tab][tab]variable is the default timeout. TIMEOUT may be a
[tab][tab]fractional number. If TIMEOUT is 0, read returns success only
[tab][tab]if input is available on the specified file descriptor. The
[tab][tab]exit status is greater than 128 if the timeout is exceeded
-u fd[tab][tab]read from file descriptor FD instead of the standard input

Exit Status:
The return code is zero, unless end-of-file is encountered, read times out,
or an invalid file descriptor is supplied as the argument to -u.
[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.
从标准输入读取一行并将其分为不同的域。

从标准输入读取单独的一行,或者如果使用了 -u 选项,从文件描
述 FD 中读取。该行被分割成域,如同词语分割一样,并且
第一个词被赋值给第一个 NAME 变量,第二个词被赋值给第二个
NAME 变量,如此继续,直到剩下所有的词被赋值给最后一个
NAME 变量。只有 $IFS 变量中的字符被认作是词语分隔符。

如果没有提供 NAME 变量,则读取的行被存放在 REPLY 变量中。

选项:
-a array[tab]将词语赋值给 ARRAY 数组变量的序列下标成员,从
[tab][tab]零开始。
-d delim[tab]持续读取直到读入 DELIM 变量中的第一个字符,而不是
[tab][tab]换行符
-e[tab][tab]在一个交互式 shell 中使用 readline 获取行
-i text[tab]使用 TEXT 文本作为 readline 的初始文字
-n nchars[tab]读取 nchars 个字符之后返回,而不是等到读取
[tab][tab]换行符,但是分隔符仍然有效,如果遇到分隔符之前读
[tab][tab]取了不足 nchars 个字符
-N nchars[tab]在准确读取了 nchars 个字符之后返回,除非遇到
[tab][tab]了文件结束符或者读超时,任何的分隔符都被忽略
-p prompt[tab]在尝试读取之前输出 PROMPT 提示符并且不带
[tab][tab]换行符
-r[tab][tab]不允许反斜杠转义任何字符
-s[tab][tab]不显示终端的任何输入
-t timeout[tab]如果在 TIMEOUT 秒内没有读取一个完整的行则
[tab][tab]超时并且返回失败。TMOUT 变量的值是默认的超时时间。
[tab][tab]TIMEOUT 可以是小数。如果 TIMEOUT 是0,那么仅当在
[tab][tab]指定的文件描述符上输入有效的时候,read 才返回成功。
[tab][tab]如果超过了超时时间,则返回状态码大于128
-u fd[tab][tab]从文件描述符 FD 中读取,而不是标准输入

退出状态:
返回码为零,除非遇到了文件结束符,读超时,或者无效的文
件描述符作为参数传递给了 -u 选项。
Translated by Alex Ye
Located in builtins.c:971
505 of 547 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.