exec <FILE while read line do cmd done
cat FILE_PATH | while read line do cmd done
这里的 line 如果写成多个参数,则会把行按空白分割,稍微处理一下,在读取配置文件时,比较好用。
while read line do cmd done <FILE