Browsing Chinese (Simplified) translation

585 of 586 results
585.
Read lines from the standard input into an indexed array variable.

Read lines from the standard input into the indexed array variable ARRAY, or
from file descriptor FD if the -u option is supplied. The variable MAPFILE
is the default ARRAY.

Options:
-d delim[tab]Use DELIM to terminate lines, instead of newline
-n count[tab]Copy at most COUNT lines. If COUNT is 0, all lines are copied
-O origin[tab]Begin assigning to ARRAY at index ORIGIN. The default index is 0
-s count[tab]Discard the first COUNT lines read
-t[tab]Remove a trailing DELIM from each line read (default newline)
-u fd[tab]Read lines from file descriptor FD instead of the standard input
-C callback[tab]Evaluate CALLBACK each time QUANTUM lines are read
-c quantum[tab]Specify the number of lines read between each call to
[tab][tab][tab]CALLBACK

Arguments:
ARRAY[tab]Array variable name to use for file data

If -C is supplied without -c, the default quantum is 5000. When
CALLBACK is evaluated, it is supplied the index of the next array
element to be assigned and the line to be assigned to that element
as additional arguments.

If not supplied with an explicit origin, mapfile will clear ARRAY before
assigning to it.

Exit Status:
Returns success unless an invalid option is given or ARRAY is readonly or
not an indexed array.
[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> 中读取。默认的 <数组> 是 MAPFILE 变量。

选项:
-d 分隔符[tab]使用 <分隔符> 而非换行符标志一行的结束
-n 计数[tab]最多复制 <计数> 行。如果 <计数> 为 0,则复制所有行
-O 起始[tab]从索引 <起始> 开始赋值给 <数组> 变量。默认索引是 0
-s 计数[tab]丢弃最初读取的 <计数> 行
-t[tab]从读取的每行末尾删除一个 <分隔符>(默认为换行符)
-u fd[tab]从文件描述符 <FD> 中读取行,而不是标准输入
-C 回调[tab]每读取 <间隔> 行之后对 <回调> 进行求值
-c 间隔[tab]指定每次调用 <回调> 之前读取的行数

参数:
数组[tab]存储文件数据使用的数组变量名

如果使用了 -C 而没有 -c,默认的间隔是 5000。当对 <回调> 进行求值时,
下一个将被赋值的数组元素的索引以及将被赋给那个元素的行会作为额外参数
被传递给它。

如果没有显式指定起始索引,mapfile 会在赋值前清空 <数组>。

退出状态:
返回成功,除非使用了无效的选项,或者 <数组> 为只读或不是索引数组。
Translated by Wenbin Lv
Located in builtins.c:2050
585 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.