unixowe-systemy-operacyjne/firstscripts/ping2.sh
2023-05-08 16:22:26 +02:00

16 lines
162 B
Bash
Executable File

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