On ne compte pas respbats (sauf si on a plus de 2 lignes)

darcs-hash:20080728050620-ddb99-90f2a84d6539acc99b2f2744a687c13992de629b.gz
This commit is contained in:
Michel Blockelet 2008-07-28 07:06:20 +02:00
parent fd2df3c711
commit de20339351

View file

@ -14,7 +14,13 @@ then
fi
(for i in $( getent passwd | awk -F ":" '{ print $3 }' | sort | uniq -c | awk '$1 > 1 { print $2 }' )
do getent passwd | awk -F ":" '$3 == "'$i'"'
do if [ $i -eq 120 ] #Respbats
then l=`getent passwd | awk -F ":" '$3 == "120"'`
if [ `echo "$l" | wc -l` -gt 2 ]
then echo "$l"
fi
else getent passwd | awk -F ":" '$3 == "'$i'"'
fi
done) > $TMPFILE
if [ -s $TMPFILE ]
then