unixowe-systemy-operacyjne/firstscripts/ping2.sh

16 lines
162 B
Bash
Raw Normal View History

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