标签:tst .sh 大小 bash for cat += bin ota
[root@usr001 ~]# cat dd.shdu -ab /root/test/201712{01..31}/pdf/*|awk -F "[ /]+" ‘{print $1}‘
#此处有反引号done
echo "total:$SUM"
[root@usr001 ~]# sh dd.sh
total:2503312000
[root@usr001 ~]#
[root@usr001 ~]# cat dd.sh
for i in du -ab /root/test/201712{01..31}/pdf/*|awk -F "[ /]+" ‘{print $1}‘
#此处有反引号
do
let SUM+=$i
done
echo "total:$SUM">>/tmp/tst.txt
[root@usr001 ~]#
标签:tst .sh 大小 bash for cat += bin ota
原文地址:http://blog.51cto.com/12040328/2308105