как то так наверное
#!/bin/bash
number=10
count=5
for i in `seq 1 $count`; do
ok=0
while [ $ok -eq 0 ]; do
echo "Input value: "
read value
if [ `expr $value + 1 2> /dev/null` ] ; then
ok=1
fi
done
if [ $value -eq $number ]
then
echo "Win!!!"
exit
fi
done