shell-while循环读取文件内容
运行平台:centos
while循环读取文件
#!/bin/bash
cat a|while read -r line
do
echo $line
done
(使用参数r会屏蔽文本中的特殊符号,只做输出不做转译)
做一个决定,并不难,难的是付诸行动,并且坚持到底。
运行平台:centos
while循环读取文件
#!/bin/bash
cat a|while read -r line
do
echo $line
done
(使用参数r会屏蔽文本中的特殊符号,只做输出不做转译)