2015年5月28日 星期四

BASH SCIPT筆記-從字串中讀取一行字串

the_list="1
2
3
4
5
6
7
8
9
"

while IFS= read -r line
do
    echo "$line"
done <<< "$the_list"

沒有留言: