读取配置文件,循环获取数据
```
```
while read line
do
echo $line
done< filename(待读取的文件)
cat filename(待读取的文件) |while read line
do
echo $line
done
通过执行结果,循环读取行结果
for line in `ls`
do
#dosomething
done
读取配置文件,循环获取数据
```
```
while read line
do
echo $line
done< filename(待读取的文件)
cat filename(待读取的文件) |while read line
do
echo $line
done
通过执行结果,循环读取行结果
for line in `ls`
do
#dosomething
done