shell脚本循环读出文件每一行

shell脚本循环读出文件每一行

#!/bin/bash

cat file(待读取的文件) | while read line
do
    echo $line
done

猜你喜欢

转载自blog.csdn.net/liu16659/article/details/128469778