一个简单脚本
#!/bin/sh
COUNTER=0
for MAILNO in `cat txt.list |awk '{print $9}'`
do
COUNTER=`expr $COUNTER + 1`
rm $MAILNO
echo "$MAILNO already deleted!"
if [ $COUNTER -eq 100 ] ; then
COUNTER=0
echo "Now Have a Break!"
sleep 2
fi
done
用途,批量删除文件而已
#!/bin/sh
COUNTER=0
for MAILNO in `cat txt.list |awk '{print $9}'`
do
COUNTER=`expr $COUNTER + 1`
rm $MAILNO
echo "$MAILNO already deleted!"
if [ $COUNTER -eq 100 ] ; then
COUNTER=0
echo "Now Have a Break!"
sleep 2
fi
done
用途,批量删除文件而已