#!/bin/ksh
for wline in `df -kl | grep -iv Capacity | awk '{print $5 $6}'`
do
pct=`echo $wline | awk -F% '{print $1}'`
mp=`echo $wline | awk -F% '{print $2}'`
if (( pct > 80 ))
then
echo $mp" is "$pct"% full!"
fi
done
|
Results 1 to 2 of 2
Thread: need file system shells scriptThreaded View
|
Click Here to Expand Forum to Full Width |