#!/bin/bash
#将不同目录下的www文件夹进行文本限制,超过限制,清空WWW文件夹
cd /tmp/lei
for i in `du | grep www | awk '{print $1}'`
do
{
if [ "$i" -gt "2" ];
then
{
for r in `du | grep www | awk '{print $2}'`
do
rm -f $r/*
done
}
else
echo "aa";
fi
}
done
#将不同目录下的www文件夹进行文本限制,超过限制,清空WWW文件夹
cd /tmp/lei
for i in `du | grep www | awk '{print $1}'`
do
{
if [ "$i" -gt "2" ];
then
{
for r in `du | grep www | awk '{print $2}'`
do
rm -f $r/*
done
}
else
echo "aa";
fi
}
done