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
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