Le 13818ième jour après Epoch,
Jacques L'helgoualc'h écrivait:
> Francois Boisson a écrit, jeudi 1 novembre 2007, à 11:52 :
>>
>> > VERIF=`grep $USER /etc/passwd | cut -d: -f1`
>> >
>> > if [ ! -e "$VERIF" ]; then
>>
>> if grep -q $USER /etc/passwd ; then
>>
>> devrait marcher
>
> Plutôt « grep -q -m1 "^${USER}:" » ?Voire: if getent passwd $TEST_USER > /dev/null 2>&1; then echo "Yes"; fi man getent

