Added other files from previous lecture;

This commit is contained in:
Arkadiusz Hypki 2023-04-24 16:36:00 +02:00
parent d36025414a
commit ffd8721277
10 changed files with 50 additions and 0 deletions

0
dest/plik3 Normal file
View File

0
dest/plik444444 Normal file
View File

3
hello.sh Executable file
View File

@ -0,0 +1,3 @@
echo "Cześć `whoami`, wpisałeś $*"
echo "Cześć $USER"

3
hello2.sh Executable file
View File

@ -0,0 +1,3 @@
echo "Cześć $USER, wpisałeś parameter wejś. $*"
echo "Cześć `whoami`"

16
ping.sh Executable file
View 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
View 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

4
plik2 Normal file
View File

@ -0,0 +1,4 @@
3 Poznan
3 Wroclaw
10 Wuuuarszawa
3 Szczecin

0
plik2222222 Normal file
View File

4
plik3 Normal file
View File

@ -0,0 +1,4 @@
3 Poznan
3 Wroclaw
10 Wuuuarszawa
2 Szczecin

5
wynik.txt Normal file
View File

@ -0,0 +1,5 @@
drwx------+ 2 ahypki faculty 0 lut 27 18:38 dest
-rw-------+ 1 ahypki faculty 0 lut 27 18:34 plik2222222
-rw-------+ 1 ahypki faculty 0 mar 20 2023 wynik.txt
total 1
-rw-------+ 1 ahypki faculty 42 mar 20 15:50 plik2