16 lines
162 B
Bash
16 lines
162 B
Bash
|
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
|