i=1 while [ $i -eq 1 ] do read userinput if [ $userinput == "ping" ] then echo "pong" else echo "nie umiesz grać" echo "${userinput:2:6}" fi done