Hi,
please try this
flag=0
touch /tmp/testaja.txt
bdf|awk '{print $5" "$6}'|while read output;
do
persen=$(echo $output |awk -F "%" '{print $1}')
dir=$(echo $output |awk '{print $2}')
if [ $persen -gt 80 ]; then
echo "$dir $persen" >> /tmp/testaja.txt
flag=1
fi
done
if [ $flag -eq 1]; then
mail
yourmail@somewhere.com < /tmp/testaja.txt
fi
thanks