#!/bin/bash
FILE=/usr/local/mysql
FILESIZE=`du -s $FILE| awk ‘{print $1}‘`|cut -f 1 -d ‘M‘
if [ $FILESIZE -gt 20 ]; then
echo "the file size is more than the primary file"
else
echo "the file size is less than the primary file"
fi
时间: 2024-11-09 00:43:29