#!/bin/bash
export DIR=/data/fslogger
Date=`date +%d`
ls -l | awk '/lobby/&&/Jul/{if($7~/29/)a+=$5}END{print a}'
SUM=`expr $lobby / 1024`
echo "size:$SUM M" >> sum.txt
转载于:https://blog.51cto.com/yeshang/626290
#!/bin/bash
export DIR=/data/fslogger
Date=`date +%d`
ls -l | awk '/lobby/&&/Jul/{if($7~/29/)a+=$5}END{print a}'
SUM=`expr $lobby / 1024`
echo "size:$SUM M" >> sum.txt
转载于:https://blog.51cto.com/yeshang/626290