2个关键点:
1、read代表整行,line是变量
2、"line"加双引号
#!/bin/bash
find /aa/*.rar -exec ls {} \; > /log/aa.txt
cat /log/aa.txt | while read line
do
/bin/rm -rf "line"
done
原文链接:https://www.f2er.com/bash/390409.html2个关键点:
1、read代表整行,line是变量
2、"line"加双引号
#!/bin/bash
find /aa/*.rar -exec ls {} \; > /log/aa.txt
cat /log/aa.txt | while read line
do
/bin/rm -rf "line"
done
原文链接:https://www.f2er.com/bash/390409.html