从标准输入(或文件)读取一行并将单词分配给变量。 更多信息:https://manned.org/read.1p.
read {{变量}}
read -a {{数组}}
read -n {{字符数}} {{变量}}
read {{_ 变量1 _ 变量2}} <<< "{{The surname is Bond}}"
read -r {{变量}}
read -p "{{提示语:}}" {{变量}}
read -s {{变量}}
while read line; do {{echo|ls|rm|...}} "$line"; done < {{标准输入|路径/到/文件|...}}