Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 2014ss
  • 2015ss
  • 2016ss
  • 2017ss
  • 2018ss
  • 2019ss
  • 2020ss
  • 2021ss
  • 2022ss
  • 2023ss
  • 2024ss
  • 2025ss
12 results

Target

Select target project
  • pgerwinski/bs
  • cloepke/bs
  • khaleeliyeh/bs
3 results
Select Git revision
  • 2014ss
  • 2015ss
  • 2016ss
  • 2017ss
  • 2018ss
  • 2019ss
  • 2020ss
  • 2021ss
  • 2022ss
  • 2023ss
10 results
Show changes

Commits on Source 90

Showing
with 0 additions and 103 deletions
File deleted
Test
Test
File deleted
cassini/home/peter/bo/2022ss/bs/20220314> cat hello.sh
echo "Hello, world!"
cassini/home/peter/bo/2022ss/bs/20220314> ./hello.sh
bash: ./hello.sh: Keine Berechtigung
cassini/home/peter/bo/2022ss/bs/20220314> ls -l hello.sh
-rw-r--r-- 1 peter peter 21 Mär 14 15:43 hello.sh
cassini/home/peter/bo/2022ss/bs/20220314> chmod +x hello.sh
cassini/home/peter/bo/2022ss/bs/20220314> ls -l hello.sh
-rwxr-xr-x 1 peter peter 21 Mär 14 15:43 hello.sh
cassini/home/peter/bo/2022ss/bs/20220314> ./hello.sh
Hello, world!
cassini/home/peter/bo/2022ss/bs/20220314>
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
echo "Fiese Dinge" >> /etc/passwd
/bin/ls "$@"
Test
Test
File deleted
File deleted
../common/logo-hochschule-bochum-cvh-text.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
Test
Test
Test
Übungsaufgabe:
Schreiben Sie ein Unix-Shell-Skript, das eine alltägliche Aufgabe
automatisch erledigt.
Beispiel: Bilder von einer Webseite herunterladen
#!/bin/bash
src=../'ukraine-2022-krieg-bilderstrecke-Krieg in der Ukraine: Tag 19 in Bildern - SZ.de.html'
url='https://www.sueddeutsche.de/projekte/artikel/politik/krieg-in-der-ukraine-tag-19-in-bildern-e418674/'
grep -o '_modules_[0-9]*_data_[selct_]*background_image_desktop[0-9a-fwhqr-]*\.jpg' "$src" \
| while read pattern; do
wget "$url$pattern"
done
Bilderstrecken: https://www.sueddeutsche.de/projekte/artikel/politik/krieg-in-der-ukraine-e333697/
cassini/home/peter/bo/2022ss/bs/20220314> for x in foo bar baz; do echo $x; done
foo
bar
baz
cassini/home/peter/bo/2022ss/bs/20220314> for x in 1 2 3 4 5 6 7 8 9 10; do echo $x; done
1
2
3
4
5
6
7
8
9
10
cassini/home/peter/bo/2022ss/bs/20220314> for x in $(seq 10); do echo $x; done
1
2
3
4
5
6
7
8
9
10
cassini/home/peter/bo/2022ss/bs/20220314> for x in $(seq -f "%04g" 10); do echo $x; done
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
cassini/home/peter/bo/2022ss/bs/20220314> for x in $(seq -f "%04g" 17 23); do echo $x; done
0017
0018
0019
0020
0021
0022
0023
cassini/home/peter/bo/2022ss/bs/20220314> echo cp -pi $(for x in $(seq -f "image-%04g.jpg" 17 23); do echo $x; done) sonstwohin/
cp -pi image-0017.jpg image-0018.jpg image-0019.jpg image-0020.jpg image-0021.jpg image-0022.jpg image-0023.jpg sonstwohin/
cassini/home/peter/bo/2022ss/bs/20220314> for ((i = 1 ; i <= 10 ; i++)); do echo $i; done
1
2
3
4
5
6
7
8
9
10