Added other files from previous lecture;
This commit is contained in:
parent
d36025414a
commit
ffd8721277
0
dest/plik3
Normal file
0
dest/plik3
Normal file
0
dest/plik444444
Normal file
0
dest/plik444444
Normal file
3
hello.sh
Executable file
3
hello.sh
Executable file
@ -0,0 +1,3 @@
|
||||
echo "Cześć `whoami`, wpisałeś $*"
|
||||
|
||||
echo "Cześć $USER"
|
3
hello2.sh
Executable file
3
hello2.sh
Executable file
@ -0,0 +1,3 @@
|
||||
echo "Cześć $USER, wpisałeś parameter wejś. $*"
|
||||
|
||||
echo "Cześć `whoami`"
|
16
ping.sh
Executable file
16
ping.sh
Executable file
@ -0,0 +1,16 @@
|
||||
while true
|
||||
do
|
||||
|
||||
read userinput
|
||||
|
||||
if [ $userinput = "ping" ]
|
||||
then
|
||||
echo "pong"
|
||||
elif [ $userinput = "exit" ]
|
||||
then
|
||||
break
|
||||
else
|
||||
echo "Nie umiesz grać"
|
||||
fi
|
||||
|
||||
done
|
15
ping2.sh
Executable file
15
ping2.sh
Executable file
@ -0,0 +1,15 @@
|
||||
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
|
0
plik2222222
Normal file
0
plik2222222
Normal file
Loading…
Reference in New Issue
Block a user