-
用途
Read a line from the standard input and split it into fields.
从标准输入读取一行,将这行分配给fields
Reads a single line from the standard input, or from file descriptor FD
从文件描述符FD(如果-u选项提供了描述符)或者标准输入读取一行
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.将这行分割赋值给fields(就像单词分割一样),将第一个单词赋值给第一个NAME,第二个单词赋值给第二个NAME,依次这样等等,最后剩余的赋值给最后的名字。在$IFS中的字符被识别为单词分割符。
If no NAMEs are supplied, the line read is stored in the REPLY variable.
如果没有NAME提供,line的read被存储在返回变量中
-
格式
read [-ers] [-a array] [-d delim] [-