#!/bin/sh
clear
befehle=( whoami ls who finger ps )
eingabe=5
while [ $eingabe > 4 ]
do
# for i in 0 1 2 3 4
# do
# echo $i - ${befehle[$i]}
#done
echo "you're still in the loop"
read eingabe
echo "Input:" $eingabe
done
Hello,
I am having a problem with this loop. WHATEVER I give in as an input, it does not exit the loop :s
#!/bin/sh
clear
befehle="\( whoami ls who finger ps \)"
eingabe=5
while [ "$eingabe" > 4 ]
do
# for i in 0 1 2 3 4
# do
# echo $i - ${befehle[$i]}
#done
echo "you're still in the loop"
read eingabe
echo "Input:" $eingabe
done
Sorry, your error wasnt clear to me...
And testing again I realized what you wanted and you got the answer before I had time to correct... yes it was -gt like this: