1 迭代每一行:
#! /bin/bash
while read line;
do
echo $line;
done < t.txt
2 迭代一行中的每个单词
[root@localhost test]# for word in "hello lufubo"; do echo $word; done;
hello lufubo