截取日志文件大小

#!/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

你可能感兴趣的:(职场,大小,截取,休闲,日志文件)