shell对文档里的多行数字求和:/usr/bin/find $Dir/$b/* -type f -exec ls -l {} ; | awk -F[:" "]+ '{print $5}' > /log/aa.txtSize=cat /log/aa.txt | awk '{sum+=$1} END {print sum}'echo $Size ......
本文摘自 :https://blog.51cto.com/y
海量资源,尽在掌握
shell对文档里的多行数字求和:/usr/bin/find $Dir/$b/* -type f -exec ls -l {} ; | awk -F[:" "]+ '{print $5}' > /log/aa.txtSize=cat /log/aa.txt | awk '{sum+=$1} END {print sum}'echo $Size ......
本文摘自 :https://blog.51cto.com/y
开通会员,享受整站包年服务