Changes

Jump to navigation Jump to search
16 bytes added ,  06:49, 25 March 2016
Line 375: Line 375:  
declare -i tnseen
 
declare -i tnseen
   −
printf "%25s %10s %10s %10s %10s \n" "User" "LearnAsSpam" "LearnAsHam" "JunkMail" "NotSeen"
+
printf "%-25s %-11s %-11s %-11s %-11s \n" "User" "LearnAsSpam" "LearnAsHam" "JunkMail" "NotSeen"
 
pushd /home/e-smith/files/users/ >>/dev/nul
 
pushd /home/e-smith/files/users/ >>/dev/nul
 
for u in `ls ` #| grep -v admin`
 
for u in `ls ` #| grep -v admin`
Line 385: Line 385:  
   nseen=`ls -1 $mailpath/Maildir/.$JunkMail/new |wc -l`
 
   nseen=`ls -1 $mailpath/Maildir/.$JunkMail/new |wc -l`
 
   if  [[ $spam > 0 ]] || [[ $ham > 0 ]] || [[ $left > 0 ]] || [[ $nseen > 0 ]];  then
 
   if  [[ $spam > 0 ]] || [[ $ham > 0 ]] || [[ $left > 0 ]] || [[ $nseen > 0 ]];  then
     printf "%25s %10d %10d %10d %10d \n" $u $spam $ham $left $nseen
+
     printf "%-25s %-11d %-11d %-11d %-11d \n" $u $spam $ham $left $nseen
 
   fi
 
   fi
 
   tspam=$tspam+$spam
 
   tspam=$tspam+$spam
Line 393: Line 393:  
done
 
done
 
echo "----------------------------------------------------------------------"
 
echo "----------------------------------------------------------------------"
printf "%25s %10d %10d %10d %10d \n" "Total:" $tspam $tham $tleft $tnseen
+
printf "%-25s %-11d %-11d %-11d %-11d \n" "Total:" $tspam $tham $tleft $tnseen
 
echo
 
echo
 
popd >>/dev/nul
 
popd >>/dev/nul
 +
 
</pre>
 
</pre>
  
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu