Skip to content
Snippets Groups Projects
Commit f5098520 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Vorbereitung 30.10.2024

parent 021ddf44
No related branches found
No related tags found
No related merge requests found
Showing
with 231 additions and 0 deletions
Hallo, Welt!
Hallo, Welt!
#!/usr/bin/bc
2 + 2
#!/usr/bin/bc
2 + 2
quit
#!/usr/bin/python3
print (3.14 * 2)
cassini/home/peter/bo/2024ws/dbs> find . -name "*.sh"
./20241002/test-01.sh
./gen-prakt.sh
./20241016/ls-root2.sh
./20241016/scripts-13.sh
./20241016/greeting2.sh
./20241016/ls-root.sh
./20241016/greeting.sh
./20241016/hallo3.sh
./20241016/hallo.sh
cassini/home/peter/bo/2024ws/dbs> find . -name "*.pdf"
./20241002/Zeichen_123.pdf
./20241002/dbs-2024ws-p0.pdf
./20241002/dbs-20241002.pdf
./20241002/logo-hochschule-bochum.pdf
./20241002/logo-hochschule-bochum-cvh-text-v2.pdf
./common/dbs-slides-title-2024ws.pdf
./common/Zeichen_123.pdf
./common/Ethernetpaket.pdf
./common/Zeichen_101.pdf
./common/logo-hochschule-bochum.pdf
./common/logo-hochschule-bochum-cvh-text-v2.pdf
./dbs-slides-2024ws.pdf
./20241016/dbs-20241016.pdf
./20241016/Zeichen_123.pdf
./20241016/dbs-uebung-20241016.pdf
./20241016/Zeichen_101.pdf
./20241016/logo-hochschule-bochum.pdf
./20241016/logo-hochschule-bochum-cvh-text-v2.pdf
./20241009/dbs-uebung-20241009.pdf
./20241009/dbs-20241009.pdf
./20241009/Zeichen_123.pdf
./20241009/logo-hochschule-bochum.pdf
./20241009/logo-hochschule-bochum-cvh-text-v2.pdf
cassini/home/peter/bo/2024ws/dbs>
cassini/home/peter/bo/2024ws/dbs> find . -type l
./20241002/zentraler-computer.jpg
./20241002/computer-arbeitsplaetze.jpg
./20241002/pgslides.sty
./20241002/dbms-ohne-computer.jpg
./20241002/Zeichen_123.pdf
./20241002/pgscript.sty
./20241002/online-shop.jpg
./20241002/logo-hochschule-bochum.pdf
./20241002/logo-hochschule-bochum-cvh-text-v2.pdf
./.git
./20241016/test/test-02.txt
./20241016/test/test-03.txt
./20241016/pgslides.sty
./20241016/test2
./20241016/Zeichen_123.pdf
./20241016/pgscript.sty
./20241016/Zeichen_101.pdf
./20241016/logo-hochschule-bochum.pdf
./20241016/logo-hochschule-bochum-cvh-text-v2.pdf
./20241009/zentraler-computer.jpg
./20241009/computer-arbeitsplaetze.jpg
./20241009/pgslides.sty
./20241009/dbms-ohne-computer.jpg
./20241009/Zeichen_123.pdf
./20241009/pgscript.sty
./20241009/online-shop.jpg
./20241009/logo-hochschule-bochum.pdf
./20241009/logo-hochschule-bochum-cvh-text-v2.pdf
cassini/home/peter/bo/2024ws/dbs>
#!/bin/bash
read name
echo Hallo $name
#!/bin/bash
echo Hallo $1
cassini/home/peter/bo/2024ws/dbs/20241016/test3> cat test[123].txt
Hello, world!
Hallo, Welt!
Hällo, wörlt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> cat test1.txt
Hello, world!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> cat test2.txt
Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> cat test3.txt
Hällo, wörlt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep Hallo *.txt
test2.txt:Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep Hello *.txt
test1.txt:Hello, world!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep H[ae]llo *.txt
test1.txt:Hello, world!
test2.txt:Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3>
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "H.*o" *.txt
test1.txt:Hello, world!
test2.txt:Hallo, Welt!
test3.txt:Hällo, wörlt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "H.llo" *.txt
test1.txt:Hello, world!
test2.txt:Hallo, Welt!
test3.txt:Hällo, wörlt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "Hel*o" *.txt
test1.txt:Hello, world!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "Welt" *.txt
test2.txt:Hallo, Welt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "^Welt" *.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "^H" *.txt
test1.txt:Hello, world!
test2.txt:Hallo, Welt!
test3.txt:Hällo, wörlt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3>
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep "H.*o" *.txt
test1.txt:Hello, world!
test2.txt:Hallo, Welt!
test3.txt:Hällo, wörlt!
cassini/home/peter/bo/2024ws/dbs/20241016/test3> grep -o "H.*o" *.txt
test1.txt:Hello, wo
test2.txt:Hallo
test3.txt:Hällo
cassini/home/peter/bo/2024ws/dbs/20241016/test3>
cassini/home/peter/bo/2024ws/dbs/20241016> grep -o "https\?://[-0-9a-z./]*" ../common/GNU-GPL-3
http://fsf.org/
http://www.gnu.org/licenses/
http://www.gnu.org/licenses/
http://www.gnu.org/philosophy/why-not-lgpl.html
cassini/home/peter/bo/2024ws/dbs/20241016> egrep -o "https?://[-0-9a-z./]*" ../common/GNU-GPL-3
http://fsf.org/
http://www.gnu.org/licenses/
http://www.gnu.org/licenses/
http://www.gnu.org/philosophy/why-not-lgpl.html
cassini/home/peter/bo/2024ws/dbs/20241016>
echo "Hallo, Welt!"
#!/bin/bash
echo "Hallo, Welt!"
cassini/home/peter/bo/2024ws/dbs/20241016/test> ln test-01.txt test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 8
-rw-r--r-- 2 peter peter 19 16. Okt 12:51 test-01.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 13:04 test-02.txt -> test-03.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
-rw-r--r-- 2 peter peter 19 16. Okt 12:51 test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> rm test-01.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-04.txt
Dies ist ein Test.
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 4
lrwxrwxrwx 1 peter peter 11 16. Okt 13:04 test-02.txt -> test-03.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
-rw-r--r-- 1 peter peter 19 16. Okt 12:51 test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test>
cassini/home/peter/bo/2024ws/dbs/20241016/test> ln test-04.txt test-01.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 8
-rw-r--r-- 2 peter peter 19 16. Okt 12:51 test-01.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 13:04 test-02.txt -> test-03.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
-rw-r--r-- 2 peter peter 19 16. Okt 12:51 test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-01.txt
Dies ist ein Test.
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-04.txt
Dies ist ein Test.
cassini/home/peter/bo/2024ws/dbs/20241016/test> echo "Hallo?" > test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-01.txt
Hallo?
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-04.txt
Hallo?
cassini/home/peter/bo/2024ws/dbs/20241016/test>
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -l
insgesamt 8
-rw-r--r-- 2 peter peter 7 16. Okt 13:07 test-01.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 13:04 test-02.txt -> test-03.txt
lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
-rw-r--r-- 2 peter peter 7 16. Okt 13:07 test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-04.txt
Hallo?
cassini/home/peter/bo/2024ws/dbs/20241016/test> echo "Und jetzt?" > test-01.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cat test-04.txt
Und jetzt?
cassini/home/peter/bo/2024ws/dbs/20241016/test>
cassini/home/peter/bo/2024ws/dbs/20241016/test> ls -li
insgesamt 8
12074767 -rw-r--r-- 2 peter peter 11 16. Okt 13:11 test-01.txt
12074774 lrwxrwxrwx 1 peter peter 11 16. Okt 13:04 test-02.txt -> test-03.txt
12074769 lrwxrwxrwx 1 peter peter 11 16. Okt 12:51 test-03.txt -> test-02.txt
12074767 -rw-r--r-- 2 peter peter 11 16. Okt 13:11 test-04.txt
cassini/home/peter/bo/2024ws/dbs/20241016/test> cd ..
cassini/home/peter/bo/2024ws/dbs/20241016> cd ..
cassini/home/peter/bo/2024ws/dbs> cd -
/home/peter/bo/2024ws/dbs/20241016
cassini/home/peter/bo/2024ws/dbs/20241016> ln test test3
ln: test: harte Verknüpfung für Verzeichnisse ist nicht erlaubt
cassini/home/peter/bo/2024ws/dbs/20241016>
cassini/home/peter/bo/2024ws/dbs> ls -la
insgesamt 1372
drwxr-xr-x 11 peter peter 4096 15. Okt 15:26 .
drwxr-xr-x 5 peter peter 4096 9. Okt 18:08 ..
drwxr-xr-x 2 peter peter 4096 7. Okt 17:50 20241001.p0
drwxr-xr-x 3 peter peter 4096 7. Okt 18:58 20241002
drwxr-xr-x 3 peter peter 4096 8. Okt 10:25 20241008.p1
drwxr-xr-x 3 peter peter 4096 8. Okt 13:32 20241008.p2
drwxr-xr-x 3 peter peter 4096 8. Okt 11:52 20241008.p3
drwxr-xr-x 6 peter peter 4096 15. Okt 12:38 20241009
drwxr-xr-x 3 peter peter 4096 9. Okt 14:19 20241009.p3
drwxr-xr-x 6 peter peter 4096 16. Okt 13:24 20241016
drwxr-xr-x 2 peter peter 4096 15. Okt 11:57 common
-rw-r--r-- 1 peter peter 1333798 15. Okt 13:50 dbs-slides-2024ws.pdf
-rw-r--r-- 1 peter peter 786 15. Okt 13:50 dbs-slides-2024ws.tex
-rwxr-xr-x 1 peter peter 1307 25. Mär 2024 gen-prakt.sh
lrwxrwxrwx 1 peter peter 36 4. Okt 2023 .git -> /home/peter/bo/projekte/git/dbs/.git
-rw-r--r-- 1 peter peter 3710 15. Okt 13:50 README.md
-rw-r--r-- 1 peter peter 287 7. Okt 18:01 termine.txt
-rwxr-xr-x 1 peter peter 6989 7. Okt 18:58 update
cassini/home/peter/bo/2024ws/dbs> cd ..
cassini/home/peter/bo/2024ws> ls -la
insgesamt 20
drwxr-xr-x 5 peter peter 4096 9. Okt 18:08 .
drwxr-xr-x 37 peter peter 4096 4. Okt 09:17 ..
drwxr-xr-x 11 peter peter 4096 15. Okt 15:26 dbs
drwxr-xr-x 6 peter peter 4096 9. Okt 18:32 hp
drwxr-xr-x 3 peter peter 4096 12. Aug 15:39 software-entwicklungsprojekt
cassini/home/peter/bo/2024ws>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment