bash脚本IFS=',' read的意思
Posted 嗡嘛呢巴美吽舍
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了bash脚本IFS=',' read的意思相关的知识,希望对你有一定的参考价值。
IFS
is the Input Field Separator, which means the string read will be split based on the characters inIFS
. On a command line,IFS
is normally any whitespace characters, that‘s why the command line splits at spaces.
the canonical way to read one line of input with the read
builtin is:
IFS= read -r line
如: IFS=‘,‘ read -ra DEPS <<< ${dependencies}
转自: http://unix.stackexchange.com/questions/209123/understand-ifs-read-r-line
以上是关于bash脚本IFS=',' read的意思的主要内容,如果未能解决你的问题,请参考以下文章