一叶知秋.

业精于勤,荒于嬉;行成于思,毁于随。

shell脚本--逐行读取文件内容

#!/bin/env bash
while read line
do
    echo $line
done < ./age.txt
#!/bin/env bash
for i in `cat age.txt`
do
    echo $i
done
#!/bin/env bash
exec < age.txt
while read line
do
    echo $line
done
posted @ 2020-08-19 17:39  ccku  阅读(341)  评论(0编辑  收藏  举报