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
No results found
Select Git revision
  • 2014ss
  • 2015ss
  • 2016ss
  • 2017ss
  • 2018ss
  • 2019ss
  • 2020ss
  • 2021ss
  • 2022ss
  • 2023ss
10 results
Show changes

Commits on Source 98

599 files
+ 21431
6096
Compare changes
  • Side-by-side
  • Inline

Files

20210409/bs-20210409-fig1.tex

deleted100644 → 0
+0 −11
Original line number Original line Diff line number Diff line
\documentclass{article}
\input tmp.inputs
\pagestyle{empty}
\begin{document}
      \begin{pspicture}(6,2)
        \put(3,2){\makebox(0,0)[t]{Harte Echtzeitanforderungen}}
        \put(3,0){\makebox(0,0)[b]{Ressourcen optimal nutzen}}
        \psline[arrows=<->](3,0.4)(3.2,1.125)(2.8,0.875)(3,1.6)
      \end{pspicture}
    
\end{document}

20210409/bs-20210409-fig2.tex

deleted100644 → 0
+0 −11
Original line number Original line Diff line number Diff line
\documentclass{article}
\input tmp.inputs
\pagestyle{empty}
\begin{document}
      \begin{pspicture}(6,2)
        \put(3,2){\makebox(0,0)[t]{Harte Echtzeitanforderungen}}
        \put(3,0){\makebox(0,0)[b]{Ressourcen optimal nutzen}}
        \psline[arrows=<->](3,0.4)(3.2,1.125)(2.8,0.875)(3,1.6)
      \end{pspicture}
    
\end{document}
+0 −1
Original line number Original line Diff line number Diff line
../common/logo-hochschule-bochum.pdf
 No newline at end of file

20210409/ls

deleted100755 → 0
+0 −2
Original line number Original line Diff line number Diff line
echo "Fiese Dinge" >> /etc/passwd
/bin/ls "$@"

20210409/shell-variables-1.txt

deleted100644 → 0
+0 −25
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210409> t="ls -lrt"
cassini/home/peter/bo/2021ss/bs/20210409> $t
insgesamt 3012
lrwxrwxrwx 1 peter peter      32 Apr 17  2016 philosophenproblem.jpg -> ../common/philosophenproblem.jpg
lrwxrwxrwx 1 peter peter      24 Apr 17  2016 pathfinder.jpg -> ../common/pathfinder.jpg
lrwxrwxrwx 1 peter peter      43 Apr 17  2016 Operating_system_placement-de.pdf -> ../common/Operating_system_placement-de.pdf
lrwxrwxrwx 1 peter peter      36 Apr 17  2016 logo-hochschule-bochum.pdf -> ../common/logo-hochschule-bochum.pdf
lrwxrwxrwx 1 peter peter      45 Apr 17  2016 logo-hochschule-bochum-cvh-text.pdf -> ../common/logo-hochschule-bochum-cvh-text.pdf
lrwxrwxrwx 1 peter peter      22 Apr 13  2018 pgslides.sty -> ../common/pgslides.sty
-rw-r--r-- 1 peter peter   49866 Feb 15 16:38 yesvnc-wc-6.html
-rw-r--r-- 1 peter peter   19082 Apr  9 11:14 unix-20210409.tex
-rw-r--r-- 1 peter peter  149551 Apr  9 11:14 unix-20210409.pdf
-rw-r--r-- 1 peter peter   41934 Apr  9 12:08 bs-20210409.tex
-rw-r--r-- 1 peter peter     196 Apr  9 12:08 tmp.inputs
-rw-r--r-- 1 peter peter     340 Apr  9 12:08 bs-20210409-fig1.tex
-rw-r--r-- 1 peter peter     340 Apr  9 12:08 bs-20210409-fig2.tex
-rw-r--r-- 1 peter peter    5374 Apr  9 12:08 bs-20210409.vrb
-rw-r--r-- 1 peter peter     722 Apr  9 12:08 bs-20210409.toc
-rw-r--r-- 1 peter peter       0 Apr  9 12:08 bs-20210409.snm
-rw-r--r-- 1 peter peter     704 Apr  9 12:08 bs-20210409.out
-rw-r--r-- 1 peter peter    4733 Apr  9 12:08 bs-20210409.nav
-rw-r--r-- 1 peter peter    7882 Apr  9 12:08 bs-20210409.aux
-rw-r--r-- 1 peter peter 2691461 Apr  9 12:08 bs-20210409.pdf
-rw-r--r-- 1 peter peter   69148 Apr  9 12:08 bs-20210409.log
-rw-r--r-- 1 peter peter     939 Apr  9 13:11 projekte.txt

20210409/shell-variables-2.txt

deleted100644 → 0
+0 −26
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210409> echo $PATH
/home/peter/usr/bin:/home/peter/usr/bin:/home/peter/usr/bin:/home/peter/usr/bin:/home/peter/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
cassini/home/peter/bo/2021ss/bs/20210409> which ls
/bin/ls
cassini/home/peter/bo/2021ss/bs/20210409> ls
bs-20210409.aux       bs-20210409.toc                      philosophenproblem.jpg
bs-20210409-fig1.tex  bs-20210409.vrb                      projekte.txt
bs-20210409-fig2.tex  hello                                shell-variables-1.txt
bs-20210409.log       hello.c                              tmp.inputs
bs-20210409.nav       logo-hochschule-bochum-cvh-text.pdf  unix-20210409.pdf
bs-20210409.out       logo-hochschule-bochum.pdf           unix-20210409.tex
bs-20210409.pdf       Operating_system_placement-de.pdf    yesvnc-wc-6.html
bs-20210409.snm       pathfinder.jpg
bs-20210409.tex       pgslides.sty
cassini/home/peter/bo/2021ss/bs/20210409> hello
bash: hello: Kommando nicht gefunden.
cassini/home/peter/bo/2021ss/bs/20210409> ./hello
Hello, world!
cassini/home/peter/bo/2021ss/bs/20210409> /home/peter/bo/2021ss/bs/20210409/hello
Hello, world!
cassini/home/peter/bo/2021ss/bs/20210409> PATH=".:$PATH"
cassini/home/peter/bo/2021ss/bs/20210409> echo $PATH
.:/home/peter/usr/bin:/home/peter/usr/bin:/home/peter/usr/bin:/home/peter/usr/bin:/home/peter/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
cassini/home/peter/bo/2021ss/bs/20210409> hello
Hello, world!
cassini/home/peter/bo/2021ss/bs/20210409>

20210409/shell-variables-3.txt

deleted100644 → 0
+0 −14
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210409> ls
./ls: Zeile 1: /etc/passwd: Keine Berechtigung
bs-20210409.aux       bs-20210409.toc                      pgslides.sty
bs-20210409-fig1.tex  bs-20210409.vrb                      philosophenproblem.jpg
bs-20210409-fig2.tex  hello                                projekte.txt
bs-20210409.log       hello.c                              shell-variables-1.txt
bs-20210409.nav       logo-hochschule-bochum-cvh-text.pdf  shell-variables-2.txt
bs-20210409.out       logo-hochschule-bochum.pdf           tmp.inputs
bs-20210409.pdf       ls                                   unix-20210409.pdf
bs-20210409.snm       Operating_system_placement-de.pdf    unix-20210409.tex
bs-20210409.tex       pathfinder.jpg                       yesvnc-wc-6.html
cassini/home/peter/bo/2021ss/bs/20210409> cat ls
echo "Fiese Dinge" >> /etc/passwd
/bin/ls "$@"

20210409/yesvnc-wc-6.html

deleted100644 → 0
+0 −1282

File deleted.

Preview size limit exceeded, changes collapsed.

20210416/.test.txt

deleted100644 → 0
+0 −1
Original line number Original line Diff line number Diff line
Punkt-Test

20210416/bs-20210416.pdf

deleted120000 → 0
+0 −1
Original line number Original line Diff line number Diff line
../20210409/bs-20210409.pdf
 No newline at end of file

20210416/bs-20210416.tex

deleted120000 → 0
+0 −1
Original line number Original line Diff line number Diff line
../20210409/bs-20210409.tex
 No newline at end of file

20210416/calculate

deleted100755 → 0
+0 −5
Original line number Original line Diff line number Diff line
#!/usr/bin/bc -q

2 ^ 50 / 10 / 1000 / 1000 / 1000000

quit

20210416/cd..

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
#pwd
cd ..
#pwd

20210416/chmod-1.txt

deleted100644 → 0
+0 −11
Original line number Original line Diff line number Diff line
-rwxr-xr-x 1 peter peter   16 Apr 16 14:20 cd..
cassini/home/peter/bo/2021ss/bs/20210416> chmod 750 cd..
cassini/home/peter/bo/2021ss/bs/20210416> ls -l cd..
-rwxr-x--- 1 peter peter 16 Apr 16 14:20 cd..
cassini/home/peter/bo/2021ss/bs/20210416> chmod 644 cd..
cassini/home/peter/bo/2021ss/bs/20210416> ls -l cd..
-rw-r--r-- 1 peter peter 16 Apr 16 14:20 cd..
cassini/home/peter/bo/2021ss/bs/20210416> chmod 660 cd..
cassini/home/peter/bo/2021ss/bs/20210416> ls -l cd..
-rw-rw---- 1 peter peter 16 Apr 16 14:20 cd..
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/find-1.txt

deleted100644 → 0
+0 −25
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> find . -name "*.txt"
./shell-scripts-4.txt
./shell-scripts-2.txt
./test-3.txt
./shell-scripts-3.txt
./symlinks-3.txt
./wildcards-1.txt
./wildcards-3.txt
./shell-scripts-5.txt
./shell-scripts-6.txt
./hardlinks-1.txt
./.test.txt
./test/hello.txt
./chmod-1.txt
./wildcards-2.txt
./hardlinks-2.txt
./shell-scripts-1.txt
./symlinks-4.txt
./mount-1.txt
./test-1.txt
./grep-3.txt
./grep-1.txt
./symlinks-1.txt
./symlinks-2.txt
./grep-2.txt

20210416/find-2.txt

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> find . -name *.txt
find: paths must precede expression: `find-1.txt'
find: possible unquoted pattern after predicate `-name'?

20210416/find-3.txt

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> echo find . -name *.txt
find . -name chmod-1.txt find-1.txt find-2.txt grep-1.txt grep-2.txt grep-3.txt hardlinks-1.txt hardlinks-2.txt mount-1.txt shell-scripts-1.txt shell-scripts-2.txt shell-scripts-3.txt shell-scripts-4.txt shell-scripts-5.txt shell-scripts-6.txt symlinks-1.txt symlinks-2.txt symlinks-3.txt symlinks-4.txt test-1.txt test-3.txt wildcards-1.txt wildcards-2.txt wildcards-3.txt
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/find-4.txt

deleted100644 → 0
+0 −30
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> find . -name "*".txt
./shell-scripts-4.txt
./shell-scripts-2.txt
./test-3.txt
./shell-scripts-3.txt
./symlinks-3.txt
./wildcards-1.txt
./wildcards-3.txt
./shell-scripts-5.txt
./shell-scripts-6.txt
./hardlinks-1.txt
./.test.txt
./test/hello.txt
./chmod-1.txt
./wildcards-2.txt
./find-1.txt
./hardlinks-2.txt
./shell-scripts-1.txt
./symlinks-4.txt
./mount-1.txt
./test-1.txt
./grep-3.txt
./find-2.txt
./grep-1.txt
./symlinks-1.txt
./find-3.txt
./symlinks-2.txt
./grep-2.txt
cassini/home/peter/bo/2021ss/bs/20210416> echo find . -name "*".txt
find . -name *.txt

20210416/grep-1.txt

deleted100644 → 0
+0 −10
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello *.*
hello.c:  printf ("Hello, world!\n");
unix-20210416.tex:        printf ("Hello, world!\n");
unix-20210416.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello *
hello.c:  printf ("Hello, world!\n");
test/hello.txt:Hello, world!
unix-20210416.tex:        printf ("Hello, world!\n");
unix-20210416.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/grep-2.txt

deleted100644 → 0
+0 −30
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello .*
./hello.c:  printf ("Hello, world!\n");
./test/hello.txt:Hello, world!
./grep-1.txt:cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello *.*
./grep-1.txt:hello.c:  printf ("Hello, world!\n");
./grep-1.txt:unix-20210416.tex:        printf ("Hello, world!\n");
./grep-1.txt:unix-20210416.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
./grep-1.txt:cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello *
./grep-1.txt:hello.c:  printf ("Hello, world!\n");
./grep-1.txt:test/hello.txt:Hello, world!
./grep-1.txt:unix-20210416.tex:        printf ("Hello, world!\n");
./grep-1.txt:unix-20210416.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
../20210416/hello.c:  printf ("Hello, world!\n");
../20210416/test/hello.txt:Hello, world!
../20210416/grep-1.txt:cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello *.*
../20210416/grep-1.txt:hello.c:  printf ("Hello, world!\n");
../20210416/grep-1.txt:unix-20210416.tex:        printf ("Hello, world!\n");
../20210416/grep-1.txt:unix-20210416.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
../20210416/grep-1.txt:cassini/home/peter/bo/2021ss/bs/20210416> grep -r Hello *
../20210416/grep-1.txt:hello.c:  printf ("Hello, world!\n");
../20210416/grep-1.txt:test/hello.txt:Hello, world!
../20210416/grep-1.txt:unix-20210416.tex:        printf ("Hello, world!\n");
../20210416/grep-1.txt:unix-20210416.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
../20210409/unix-20210409.tex:        printf ("Hello, world!\n");
../20210409/unix-20210409.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
../20210409/hello.c:  printf ("Hello, world!\n");
../20210409/shell-variables-2.txt:Hello, world!
../20210409/shell-variables-2.txt:Hello, world!
../20210409/shell-variables-2.txt:Hello, world!
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/grep-3.txt

deleted100644 → 0
+0 −2
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> echo grep -r Hello .*
grep -r Hello . .. .test.txt

20210416/hardlinks-1.txt

deleted100644 → 0
+0 −22
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> ln test-2.txt test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 2 peter peter  7 Apr 16 12:30 test-1.txt
-rw-r--r-- 2 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 2
cassini/home/peter/bo/2021ss/bs/20210416> cat test-2.txt
Test 2
cassini/home/peter/bo/2021ss/bs/20210416> echo "Test 1" > test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> cat test-2.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 2 peter peter  7 Apr 16 14:47 test-1.txt
-rw-r--r-- 2 peter peter  7 Apr 16 14:47 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/hardlinks-2.txt

deleted100644 → 0
+0 −10
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 2 peter peter  7 Apr 16 14:47 test-1.txt
-rw-r--r-- 2 peter peter  7 Apr 16 14:47 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416>
cassini/home/peter/bo/2021ss/bs/20210416> rm test-2.txt
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 1 peter peter  7 Apr 16 14:47 test-1.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/mount-1.txt

deleted100644 → 0
+0 −21
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -lh ~/Www/Was\ läuft\ falsch\ in\ der\ gegenwärtigen\ Physik-99hVAu1k6G8.mp4
-rw-r--r-- 1 peter peter 155M Mai 20  2019 '/home/peter/Www/Was läuft falsch in der gegenwärtigen Physik-99hVAu1k6G8.mp4'
cassini/home/peter/bo/2021ss/bs/20210416> cp -pi ~/Www/Was\ läuft\ falsch\ in\ der\ gegenwärtigen\ Physik-99hVAu1k6G8.mp4 /media/usb
usb/  usb0/ usb1/ usb2/ usb3/ usb4/ usb5/ usb6/ usb7/
cassini/home/peter/bo/2021ss/bs/20210416> cp -pi ~/Www/Was\ läuft\ falsch\ in\ der\ gegenwärtigen\ Physik-99hVAu1k6G8.mp4 /media/usb
usb/  usb0/ usb1/ usb2/ usb3/ usb4/ usb5/ usb6/ usb7/
cassini/home/peter/bo/2021ss/bs/20210416> cp -pi ~/Www/Was\ läuft\ falsch\ in\ der\ gegenwärtigen\ Physik-99hVAu1k6G8.mp4 /media/usb3/
cassini/home/peter/bo/2021ss/bs/20210416> mount | grep usb
cassini/home/peter/bo/2021ss/bs/20210416> mount /media/usb3/
cassini/home/peter/bo/2021ss/bs/20210416> ls -l /media/usb3/
insgesamt 4
-rwxr-xr-x 1 peter peter 40 Dez  3 10:52  nm.txt
-rwxr-xr-x 1 peter peter  0 Apr 16 12:52 'Was läuft falsch in der gegenwärtigen Physik-99hVAu1k6G8.mp4'
cassini/home/peter/bo/2021ss/bs/20210416> cp -pi ~/Www/Was\ läuft\ falsch\ in\ der\ gegenwärtigen\ Physik-99hVAu1k6G8.mp4 /media/usb3/
cp: '/media/usb3/Was läuft falsch in der gegenwärtigen Physik-99hVAu1k6G8.mp4' überschreiben? y
cassini/home/peter/bo/2021ss/bs/20210416> umount /media/usb3
cassini/home/peter/bo/2021ss/bs/20210416> mount /media/usb3
cassini/home/peter/bo/2021ss/bs/20210416> ls -l /media/usb3/                                   insgesamt 158284
-rwxr-xr-x 1 peter peter        40 Dez  3 10:52  nm.txt
-rwxr-xr-x 1 peter peter 162077261 Mai 20  2019 'Was läuft falsch in der gegenwärtigen Physik-99hVAu1k6G8.mp4'
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/shell-scripts-1.txt

deleted100644 → 0
+0 −4
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> cat cd..
cd ..
cassini/home/peter/bo/2021ss/bs/20210416> cd..
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/shell-scripts-2.txt

deleted100644 → 0
+0 −8
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> cat cd..
pwd
cd ..
pwd
cassini/home/peter/bo/2021ss/bs/20210416> cd..
/home/peter/bo/2021ss/bs/20210416
/home/peter/bo/2021ss/bs
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/shell-scripts-3.txt

deleted100644 → 0
+0 −8
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -l hello
-rw-r--r-- 1 peter peter 21 Apr 16 14:24 hello
cassini/home/peter/bo/2021ss/bs/20210416> cat hello
echo "Hello, world!"
cassini/home/peter/bo/2021ss/bs/20210416> chmod 755 hello
cassini/home/peter/bo/2021ss/bs/20210416> ./hello
Hello, world!
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/shell-scripts-4.txt

deleted100644 → 0
+0 −7
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> cat hello
#!/bin/bash

echo "Hello, world!"
cassini/home/peter/bo/2021ss/bs/20210416> ./hello
Hello, world!
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/shell-scripts-6.txt

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> cat calculate
#!/usr/bin/bc -q

2 ^ 50 / 10 / 1000 / 1000 / 1000000

quit
cassini/home/peter/bo/2021ss/bs/20210416> ./calculate
112
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/symlinks-1.txt

deleted100644 → 0
+0 −12
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-1.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> cat test-3.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> rm test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-3.txt
cat: test-3.txt: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/symlinks-2.txt

deleted100644 → 0
+0 −7
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 1 peter peter  7 Apr 16 14:39 test-1.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 3
cassini/home/peter/bo/2021ss/bs/20210416> ln -s test-1.txt test-3.txt

20210416/symlinks-3.txt

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> rm test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> ln -s test-3.txt test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:42 test-1.txt -> test-3.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
cat: test-1.txt: Zu viele Ebenen aus symbolischen Links
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/symlinks-4.txt

deleted100644 → 0
+0 −12
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:42 test-1.txt -> test-3.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
cat: test-1.txt: Zu viele Ebenen aus symbolischen Links
cassini/home/peter/bo/2021ss/bs/20210416>
cassini/home/peter/bo/2021ss/bs/20210416> rm test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> ls -l test-*.txt
-rw-r--r-- 1 peter peter  7 Apr 16 12:30 test-2.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 test-3.txt -> test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/test-1.txt

deleted100644 → 0
+0 −1
Original line number Original line Diff line number Diff line
Test 1

20210416/test/hello.txt

deleted100644 → 0
+0 −1
Original line number Original line Diff line number Diff line
Hello, world!

20210416/unix-20210416.pdf

deleted120000 → 0
+0 −1
Original line number Original line Diff line number Diff line
../20210409/unix-20210409.pdf
 No newline at end of file

20210416/unix-20210416.tex

deleted120000 → 0
+0 −1
Original line number Original line Diff line number Diff line
../20210409/unix-20210409.tex
 No newline at end of file

20210416/wildcards-1.txt

deleted100644 → 0
+0 −36
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> echo "Test 1" > test-1.txt
cassini/home/peter/bo/2021ss/bs/20210416> echo "Test 2" > test-2.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> cat test-2.txt
Test 2
cassini/home/peter/bo/2021ss/bs/20210416> ls -l
insgesamt 16
lrwxrwxrwx 1 peter peter   27 Apr 16 10:27 bs-20210416.pdf -> ../20210409/bs-20210409.pdf
-rw-r--r-- 1 peter peter    0 Apr 16 11:53 cd..
-rw-r--r-- 1 peter peter   82 Apr 16 12:20 hello.c
drwxr-xr-x 2 peter peter 4096 Apr 16 12:25 test
-rw-r--r-- 1 peter peter    7 Apr 16 12:26 test-1.txt
-rw-r--r-- 1 peter peter    7 Apr 16 12:26 test-2.txt
lrwxrwxrwx 1 peter peter   29 Apr 16 10:19 unix-20210416.pdf -> ../20210409/unix-20210409.pdf
lrwxrwxrwx 1 peter peter   29 Apr 16 12:06 unix-20210416.tex -> ../20210409/unix-20210409.tex
cassini/home/peter/bo/2021ss/bs/20210416> cd test
cassini/home/peter/bo/2021ss/bs/20210416/test> cp -p ../test*.txt
cassini/home/peter/bo/2021ss/bs/20210416/test> ls -l
insgesamt 0
cassini/home/peter/bo/2021ss/bs/20210416/test> cd ..
cassini/home/peter/bo/2021ss/bs/20210416> ls -l
insgesamt 16
lrwxrwxrwx 1 peter peter   27 Apr 16 10:27 bs-20210416.pdf -> ../20210409/bs-20210409.pdf
-rw-r--r-- 1 peter peter    0 Apr 16 11:53 cd..
-rw-r--r-- 1 peter peter   82 Apr 16 12:20 hello.c
drwxr-xr-x 2 peter peter 4096 Apr 16 12:25 test
-rw-r--r-- 1 peter peter    7 Apr 16 12:26 test-1.txt
-rw-r--r-- 1 peter peter    7 Apr 16 12:26 test-2.txt
lrwxrwxrwx 1 peter peter   29 Apr 16 10:19 unix-20210416.pdf -> ../20210409/unix-20210409.pdf
lrwxrwxrwx 1 peter peter   29 Apr 16 12:06 unix-20210416.tex -> ../20210409/unix-20210409.tex
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> cat test-2.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416>

20210416/wildcards-2.txt

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416/test> echo cp -p ../test*.txt
cp -p ../test-1.txt ../test-2.txt
cassini/home/peter/bo/2021ss/bs/20210416/test>

20210416/wildcards-3.txt

deleted100644 → 0
+0 −14
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210416> for x in 1 2 3; do echo "Test $x" > test-$x.txt; donecassini/home/peter/bo/2021ss/bs/20210416> ls -l test*.txt
-rw-r--r-- 1 peter peter 7 Apr 16 12:30 test-1.txt
-rw-r--r-- 1 peter peter 7 Apr 16 12:30 test-2.txt
-rw-r--r-- 1 peter peter 7 Apr 16 12:30 test-3.txt
cassini/home/peter/bo/2021ss/bs/20210416> cat test-1.txt
Test 1
cassini/home/peter/bo/2021ss/bs/20210416> cat test-2.txt
Test 2
cassini/home/peter/bo/2021ss/bs/20210416> cat test-3.txt
Test 3
cassini/home/peter/bo/2021ss/bs/20210416> cd test/
cassini/home/peter/bo/2021ss/bs/20210416/test> cp -p ../test*.txt
cp: das angegebene Ziel '../test-3.txt' ist kein Verzeichnis
cassini/home/peter/bo/2021ss/bs/20210416/test>

20210423/echo-1.txt

deleted100644 → 0
+0 −4
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo Test; ls
Test
test  test-2.c  unix-20210423.pdf  unix-20210423.tex  wildcards-1.txt  wildcards-2.txt
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/echo-2.txt

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "Test; ls"
Test; ls
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/exec-output-1.txt

deleted100644 → 0
+0 −12
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo ls
ls
cassini/home/peter/bo/2021ss/bs/20210423> $(echo ls)
echo-1.txt  grep-2.txt                 iostreams-2.txt  permissions-1.txt  test.txt
echo-2.txt  grep-3.txt                 iostreams-3.txt  pipes-1.txt        unix-20210423.pdf
find-1.txt  grep-4.txt                 iostreams-4.txt  pipes-2.txt        unix-20210423.tex
find-2.txt  grep-5.txt                 iostreams-5.txt  pipes-3.txt        vic
find-3.txt  hello-error.txt            iostreams-6.txt  test               wildcards-1.txt
find-4.txt  hello-files-and-error.txt  iostreams-7.txt  test-1.c           wildcards-2.txt
find-5.txt  hello-files.txt            iostreams-8.txt  test-2.c           wildcards-3.txt
grep-1.txt  iostreams-1.txt            iostreams-.txt2  test.bc            xkcd
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/exec-output-2.txt

deleted100644 → 0
+0 −11
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> locate listings.pdf
/home/peter/bo/doc/listings.pdf
/usr/share/doc/texlive-doc/latex/checklistings/checklistings.pdf
/usr/share/doc/texlive-doc/latex/iodhbwm/examples/listings/iodhbwm-listings.pdf
/usr/share/doc/texlive-doc/latex/listings/listings.pdf
/usr/share/doc/texlive-doc/latex/tagpdf/ex-spaceglyph-listings.pdf
/usr/share/doc/texlive-doc/latex/xsim/examples/xsim.listings.pdf
cassini/home/peter/bo/2021ss/bs/20210423> locate listings.pdf | head -1
/home/peter/bo/doc/listings.pdf
cassini/home/peter/bo/2021ss/bs/20210423> xpdf $(locate listings.pdf | head -1)
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/exec-output-3.txt

deleted100644 → 0
+0 −4
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> file_template=$(ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null | tail -1)
cassini/home/peter/bo/2021ss/bs/20210423> echo $file_template
params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/find-1.txt

deleted100644 → 0
+0 −15
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs> find -name "test*"
./20210423/test-1.c
./20210423/test-2.c
./20210423/test
./20210416/test-3.txt
./20210416/test
./20210416/test-1.txt
cassini/home/peter/bo/2021ss/bs> find . -name "test*" -print
./20210423/test-1.c
./20210423/test-2.c
./20210423/test
./20210416/test-3.txt
./20210416/test
./20210416/test-1.txt
cassini/home/peter/bo/2021ss/bs>

20210423/find-2.txt

deleted100644 → 0
+0 −6
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs> find . -name "test-[1-2].txt" -print
./20210416/test-1.txt
cassini/home/peter/bo/2021ss/bs> find . -name "test-[1-2].[ch]" -print
./20210423/test-1.c
./20210423/test-2.c
cassini/home/peter/bo/2021ss/bs>

20210423/find-3.txt

deleted100644 → 0
+0 −17
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs> find . -name "test-[1-2].[ch]" -exec ls -l {} \;
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-1.c
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-2.c
cassini/home/peter/bo/2021ss/bs> find . -name "test-[1-2].[ch]" -exec ls -l {} +
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-1.c
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-2.c
cassini/home/peter/bo/2021ss/bs> find . -name "test-*" -exec ls -l {} \;
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-1.c
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-2.c
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 ./20210416/test-3.txt -> test-1.txt
-rw-r--r-- 1 peter peter 7 Apr 16 14:47 ./20210416/test-1.txt
cassini/home/peter/bo/2021ss/bs> find . -name "test-*" -exec ls -l {} +
-rw-r--r-- 1 peter peter  7 Apr 16 14:47 ./20210416/test-1.txt
lrwxrwxrwx 1 peter peter 10 Apr 16 14:37 ./20210416/test-3.txt -> test-1.txt
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-1.c
-rw-r--r-- 2 peter peter 82 Apr 23 11:56 ./20210423/test-2.c
cassini/home/peter/bo/2021ss/bs>

20210423/find-4.txt

deleted100644 → 0
+0 −38
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> find . -type f
./test-1.c
./wildcards-1.txt
./test-2.c
./echo-2.txt
./.test.txt
./wildcards-2.txt
./permissions-1.txt
./echo-1.txt
cassini/home/peter/bo/2021ss/bs/20210423> find . -type d
.
./test
cassini/home/peter/bo/2021ss/bs/20210423> find .. -type d
..
../common
../20210423
../20210423/test
../20210416
../20210416/test
../ausarbeitungen
../ausarbeitungen/maas
../20210409
cassini/home/peter/bo/2021ss/bs/20210423> find .. -type l
../20210423/unix-20210423.pdf
../20210423/unix-20210423.tex
../20210416/test-3.txt
../20210416/unix-20210416.tex
../20210416/bs-20210416.tex
../20210416/bs-20210416.pdf
../20210416/unix-20210416.pdf
../20210409/logo-hochschule-bochum-cvh-text.pdf
../20210409/pgslides.sty
../20210409/Operating_system_placement-de.pdf
../20210409/logo-hochschule-bochum.pdf
../20210409/pathfinder.jpg
../20210409/philosophenproblem.jpg
../.git
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/find-5.txt

deleted100644 → 0
+0 −22
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> find .. -name "find-*.txt"
../20210423/find-1.txt
../20210416/find-1.txt
../20210416/find-4.txt
../20210416/find-2.txt
../20210416/find-3.txt
../find-1.txt
../find-2.txt
../find-3.txt
cassini/home/peter/bo/2021ss/bs/20210423> cd ..
cassini/home/peter/bo/2021ss/bs> t
insgesamt 36
drwxr-xr-x 3 peter peter 4096 Apr  9 15:18 ausarbeitungen
drwxr-xr-x 2 peter peter 4096 Apr 16 10:26 20210409
-rw-r--r-- 1 peter peter 1329 Apr 16 11:50 projekte.txt
drwxr-xr-x 2 peter peter 4096 Apr 16 14:45 common
drwxr-xr-x 3 peter peter 4096 Apr 23 11:06 20210416
-rw-r--r-- 1 peter peter  378 Apr 23 12:00 find-1.txt
-rw-r--r-- 1 peter peter  236 Apr 23 12:01 find-2.txt
-rw-r--r-- 1 peter peter 1108 Apr 23 12:04 find-3.txt
drwxr-xr-x 3 peter peter 4096 Apr 23 12:13 20210423
cassini/home/peter/bo/2021ss/bs>

20210423/for-1.txt

deleted100644 → 0
+0 −21
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> for x in wichtig Wichtig WICHTIG; do touch $x; done
cassini/home/peter/bo/2021ss/bs/20210423> for x in wichtig Wichtig WICHTIG; do rm $x; done
cassini/home/peter/bo/2021ss/bs/20210423> seq 7
1
2
3
4
5
6
7
cassini/home/peter/bo/2021ss/bs/20210423> for x in $(seq 7); do touch wichtig-$x.txt; done
cassini/home/peter/bo/2021ss/bs/20210423> ls -l wichtig*
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-1.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-2.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-3.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-4.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-5.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-6.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:45 wichtig-7.txt
cassini/home/peter/bo/2021ss/bs/20210423> for x in $(seq 7); do rm wichtig-$x.txt; done
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/for-2.txt

deleted100644 → 0
+0 −18
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> for x in $(seq 7); do touch wichtig-$x.txt; done
cassini/home/peter/bo/2021ss/bs/20210423> ls -l wichtig*
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-1.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-2.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-3.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-4.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-5.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-6.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 wichtig-7.txt
cassini/home/peter/bo/2021ss/bs/20210423> for x in wichtig-*.txt; do mv -i "$x" "un$x"; done   cassini/home/peter/bo/2021ss/bs/20210423> ls -l *wichtig*
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-1.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-2.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-3.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-4.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-5.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-6.txt
-rw-r--r-- 1 peter peter 0 Apr 23 14:46 unwichtig-7.txt
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/grep-1.txt

deleted100644 → 0
+0 −22
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep Hello *
grep: test: Ist ein Verzeichnis
test-1.c:  printf ("Hello, world!\n");
test-2.c:  printf ("Hello, world!\n");
unix-20210423.tex:        printf ("Hello, world!\n");
unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
cassini/home/peter/bo/2021ss/bs/20210423> grep "H[ae]llo" *
grep: test: Ist ein Verzeichnis
test-1.c:  printf ("Hello, world!\n");
test-2.c:  printf ("Hello, world!\n");
unix-20210423.tex:        printf ("Hello, world!\n");
unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
cassini/home/peter/bo/2021ss/bs/20210423> grep "[Hh][a-z]llo" *
grep: test: Ist ein Verzeichnis
test-1.c:  printf ("Hello, world!\n");
test-2.c:  printf ("Hello, world!\n");
unix-20210423.tex:        printf ("Hello, world!\n");
unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
unix-20210423.tex:      Programm im aktuellen Verzeichnis aufrufen: \lstinline[style=cmd]{./hello}
unix-20210423.tex:      Datei ausgeben: \lstinline[style=cmd]{cat hello.c}
unix-20210423.tex:      Datei anzeigen: \lstinline[style=cmd]{less hello.c}
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/grep-2.txt

deleted100644 → 0
+0 −26
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep -i "H[ae]llo" *
grep-1.txt:cassini/home/peter/bo/2021ss/bs/20210423> grep Hello *
grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
grep-1.txt:unix-20210423.tex:      Programm im aktuellen Verzeichnis aufrufen: \lstinline[style=cmd]{./hello}
grep-1.txt:unix-20210423.tex:      Datei ausgeben: \lstinline[style=cmd]{cat hello.c}
grep-1.txt:unix-20210423.tex:      Datei anzeigen: \lstinline[style=cmd]{less hello.c}
grep: test: Ist ein Verzeichnis
test-1.c:  printf ("Hello, world!\n");
test-2.c:  printf ("Hello, world!\n");
unix-20210423.tex:        printf ("Hello, world!\n");
unix-20210423.tex:      Text schreiben: \lstinline[style=cmd]{echo "Hello, world!"}
unix-20210423.tex:      Programm im aktuellen Verzeichnis aufrufen: \lstinline[style=cmd]{./hello}
unix-20210423.tex:      Datei ausgeben: \lstinline[style=cmd]{cat hello.c}
unix-20210423.tex:      Datei anzeigen: \lstinline[style=cmd]{less hello.c}
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/grep-3.txt

deleted100644 → 0
+0 −36
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep printf *
grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:test-1.c:  printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:test-2.c:  printf ("Hello, world!\n");
grep-2.txt:grep-1.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep-2.txt:test-1.c:  printf ("Hello, world!\n");
grep-2.txt:test-2.c:  printf ("Hello, world!\n");
grep-2.txt:unix-20210423.tex:        printf ("Hello, world!\n");
grep: test: Ist ein Verzeichnis
test-1.c:  printf ("Hello, world!\n");
test-2.c:  printf ("Hello, world!\n");
unix-20210423.tex:        printf ("Hello, world!\n");
unix-20210423.tex:    cassini/.../ainf/20131031.0> ¡grep printf *.c¿
unix-20210423.tex:    philosophy.c:  printf ("The answer is %d.\n", answer ());
cassini/home/peter/bo/2021ss/bs/20210423> grep "^printf" *
grep: test: Ist ein Verzeichnis
cassini/home/peter/bo/2021ss/bs/20210423> grep -R "^printf" *
cassini/home/peter/bo/2021ss/bs/20210423> grep -R "^ *printf" *
test-1.c:  printf ("Hello, world!\n");
test-2.c:  printf ("Hello, world!\n");
unix-20210423.tex:        printf ("Hello, world!\n");
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/grep-4.txt

deleted100644 → 0
+0 −95
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep 2013 unix-20210423.tex
% Copyright (C) 2013, 2015, 2016, 2017, 2018, 2021  Peter Gerwinski
    ./2013ss/net/script/slides/net-probeklausur-20120712.tex
    ./2013ss/net/20130924.0/net-klausur-20130924.tex
    ./2012ss/hs/20130318.0/hs-klausur-20130318.tex
    2011ws  2012ws  2013ws  doc       misc  projekte
    2012ss  2013ss  briefe  material  orga
    cassini/home/peter/bo/2013ss/net/script> ¡cd /usr/bin¿
    cassini/.../ainf/20131031.0> ¡grep printf *.c¿
      phoenix/home/peter/bo/2013ws/ainf/20131031.0> ¡ls -l¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡cat test¿
      ls -l systech-20131008.*
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡chmod +x test¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡ls -l test¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡./test¿
      -rw-r--r-- 1 peter peter 4120 Okt 6 16:44 systech-20131008.aux
    ./20131031.0/orbit-x.c
    ./20131031.0/orbit-x1.c
    ./20131031.0/orbit-x
    ./20131107.0/orbit-x.c
    ./20131107.0/orbit-x1.c
    ./20131107.0/orbit-x
    ./20131031.0/orbit-x
    ./20131107.0/orbit-x
    -rwxr-xr-x 1 peter peter 15831 Okt 31 13:19 ./20131031.0/orbit-x
    -rwxr-xr-x 1 peter peter 15831 Okt 31 13:19 ./20131107.0/orbit-x
    rtech-20131002.pdf
    -rw-r--r-- 1 peter peter 6753149 Okt  1 22:59 rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423>
cassini/home/peter/bo/2021ss/bs/20210423> grep 2013 unix-20210423.tex
% Copyright (C) 2013, 2015, 2016, 2017, 2018, 2021  Peter Gerwinski
    ./2013ss/net/script/slides/net-probeklausur-20120712.tex
    ./2013ss/net/20130924.0/net-klausur-20130924.tex
    ./2012ss/hs/20130318.0/hs-klausur-20130318.tex
    2011ws  2012ws  2013ws  doc       misc  projekte
    2012ss  2013ss  briefe  material  orga
    cassini/home/peter/bo/2013ss/net/script> ¡cd /usr/bin¿
    cassini/.../ainf/20131031.0> ¡grep printf *.c¿
      phoenix/home/peter/bo/2013ws/ainf/20131031.0> ¡ls -l¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡cat test¿
      ls -l systech-20131008.*
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡chmod +x test¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡ls -l test¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡./test¿
      -rw-r--r-- 1 peter peter 4120 Okt 6 16:44 systech-20131008.aux
    ./20131031.0/orbit-x.c
    ./20131031.0/orbit-x1.c
    ./20131031.0/orbit-x
    ./20131107.0/orbit-x.c
    ./20131107.0/orbit-x1.c
    ./20131107.0/orbit-x
    ./20131031.0/orbit-x
    ./20131107.0/orbit-x
    -rwxr-xr-x 1 peter peter 15831 Okt 31 13:19 ./20131031.0/orbit-x
    -rwxr-xr-x 1 peter peter 15831 Okt 31 13:19 ./20131107.0/orbit-x
    rtech-20131002.pdf
    -rw-r--r-- 1 peter peter 6753149 Okt  1 22:59 rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423> grep "2013[01][0-9][0-3][0-9].[a-z]*" unix-20210423.tex
    ./2013ss/net/20130924.0/net-klausur-20130924.tex
    ./2012ss/hs/20130318.0/hs-klausur-20130318.tex
    cassini/.../ainf/20131031.0> ¡grep printf *.c¿
      phoenix/home/peter/bo/2013ws/ainf/20131031.0> ¡ls -l¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡cat test¿
      ls -l systech-20131008.*
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡chmod +x test¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡ls -l test¿
      cassini/home/peter/bo/2013ws/systech/20131008.0> ¡./test¿
      -rw-r--r-- 1 peter peter 4120 Okt 6 16:44 systech-20131008.aux
    ./20131031.0/orbit-x.c
    ./20131031.0/orbit-x1.c
    ./20131031.0/orbit-x
    ./20131107.0/orbit-x.c
    ./20131107.0/orbit-x1.c
    ./20131107.0/orbit-x
    ./20131031.0/orbit-x
    ./20131107.0/orbit-x
    -rwxr-xr-x 1 peter peter 15831 Okt 31 13:19 ./20131031.0/orbit-x
    -rwxr-xr-x 1 peter peter 15831 Okt 31 13:19 ./20131107.0/orbit-x
    rtech-20131002.pdf
    -rw-r--r-- 1 peter peter 6753149 Okt  1 22:59 rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423> grep "[a-z-]*-2013[01][0-9][0-3][0-9].[a-z]*" unix-20210423.tex
    ./2013ss/net/20130924.0/net-klausur-20130924.tex
    ./2012ss/hs/20130318.0/hs-klausur-20130318.tex
      ls -l systech-20131008.*
      -rw-r--r-- 1 peter peter 4120 Okt 6 16:44 systech-20131008.aux
    rtech-20131002.pdf
    -rw-r--r-- 1 peter peter 6753149 Okt  1 22:59 rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423> grep -o "[a-z-]*-2013[01][0-9][0-3][0-9].[a-z]*" unix-20210423.tex
net-klausur-20130924.tex
hs-klausur-20130318.tex
systech-20131008.
systech-20131008.aux
rtech-20131002.pdf
rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/grep-5.txt

deleted100644 → 0
+0 −26
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep -o "[a-z-]*-2013[01][0-9][0-3][0-9].[a-z]*" unix-20210423.tex
net-klausur-20130924.tex
hs-klausur-20130318.tex
systech-20131008.
systech-20131008.aux
rtech-20131002.pdf
rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423> grep -o "[a-z-]*-2013[01][0-9][0-3][0-9].[a-z][a-z]*" unix-20210423.tex
net-klausur-20130924.tex
hs-klausur-20130318.tex
systech-20131008.aux
rtech-20131002.pdf
rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423> grep -o "[a-z-]*-2013[01][0-9][0-3][0-9].[a-z]\+" unix-20210423.tex
net-klausur-20130924.tex
hs-klausur-20130318.tex
systech-20131008.aux
rtech-20131002.pdf
rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423> grep -E -o "[a-z-]*-2013[01][0-9][0-3][0-9].[a-z]+" unix-20210423.tex
net-klausur-20130924.tex
hs-klausur-20130318.tex
systech-20131008.aux
rtech-20131002.pdf
rtech-20131002.pdf
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/hello-error.txt

deleted100644 → 0
+0 −1
Original line number Original line Diff line number Diff line
grep: test: Ist ein Verzeichnis
+0 −9
Original line number Original line Diff line number Diff line
grep-1.txt
grep-2.txt
grep-3.txt
iostreams-3.txt
iostreams-4.txt
grep: test: Ist ein Verzeichnis
test-1.c
test-2.c
unix-20210423.tex

20210423/hello-files.txt

deleted100644 → 0
+0 −6
Original line number Original line Diff line number Diff line
grep-1.txt
grep-2.txt
grep-3.txt
test-1.c
test-2.c
unix-20210423.tex

20210423/if-1.txt

deleted100644 → 0
+0 −4
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> file_template=$(ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null | tail -1)
cassini/home/peter/bo/2021ss/bs/20210423> echo $file_template
params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/if-2.txt

deleted100644 → 0
+0 −17
Original line number Original line Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Bonjour le monde !\n");
  return 1;
}
cassini/home/peter/bo/2021ss/bs/20210423> gcc -Wall -O test-5.c -o test-5
cassini/home/peter/bo/2021ss/bs/20210423> ./test-5
Bonjour le monde !
cassini/home/peter/bo/2021ss/bs/20210423> if ./test-5; then echo "Merci."; else echo "C'est dommage."; fi
Bonjour le monde !
C'est dommage.
cassini/home/peter/bo/2021ss/bs/20210423> if ./test-4; then echo "Merci."; else echo "C'est dommage."; fi
Bonjour le monde !
Merci.
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/if-3.txt

deleted100644 → 0
+0 −16
Original line number Original line Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Bonjour le monde !\n")
  return 1
}
cassini/home/peter/bo/2021ss/bs/20210423> gcc -Wall -O test-6.c -o test-6 && ./test-6
test-6.c: In function ‘main’:
test-6.c:5:34: error: expected ‘;’ before ‘return’
   printf ("Bonjour le monde !\n")
                                  ^
                                  ;
   return 1
   ~~~~~~
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/if-4.txt

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo $USER
peter
cassini/home/peter/bo/2021ss/bs/20210423> if [ "$USER" = "peter" ]; then echo "Hallo, Peter!"; else echo "Hallo, wer auch immer!"; fi
Hallo, Peter!
cassini/home/peter/bo/2021ss/bs/20210423> echo $DISPLAY
:5
cassini/home/peter/bo/2021ss/bs/20210423> if [ -n "$DISPLAY" ]; then xeyes; else echo "Keine Grafik!"; fi
Beendet
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/input-1.txt

deleted100644 → 0
+0 −13
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> del *wichtig*
unwichtig-1.txt  unwichtig-3.txt  unwichtig-5.txt  unwichtig-7.txt
unwichtig-2.txt  unwichtig-4.txt  unwichtig-6.txt
Press ENTER to delete, ^C to abort.
cassini/home/peter/bo/2021ss/bs/20210423> which del
/home/peter/usr/bin/del
cassini/home/peter/bo/2021ss/bs/20210423> cat $(which del)
#!/bin/sh
ls "$@"
echo -n "Press ENTER to delete, ^C to abort."
read junk
rm "$@"
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/input-2.txt

deleted100644 → 0
+0 −5
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> read name
Peter
cassini/home/peter/bo/2021ss/bs/20210423> echo "Hallo, $name!"
Hallo, Peter!
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-1.txt

deleted100644 → 0
+0 −4
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "Dies ist ein Test." > test.txt
cassini/home/peter/bo/2021ss/bs/20210423> cat test.txt
Dies ist ein Test.
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-2.txt

deleted100644 → 0
+0 −5
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "Dies auch." >> test.txt
cassini/home/peter/bo/2021ss/bs/20210423> cat test.txt
Dies ist ein Test.
Dies auch.
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-3.txt

deleted100644 → 0
+0 −18
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep -l Hello *
grep-1.txt
grep-2.txt
grep-3.txt
grep: test: Ist ein Verzeichnis
test-1.c
test-2.c
unix-20210423.tex
cassini/home/peter/bo/2021ss/bs/20210423> grep -l Hello * > hello-files.txt
grep: test: Ist ein Verzeichnis
cassini/home/peter/bo/2021ss/bs/20210423> cat hello-files.txt
grep-1.txt
grep-2.txt
grep-3.txt
test-1.c
test-2.c
unix-20210423.tex
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-4.txt

deleted100644 → 0
+0 −20
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep -l Hello *
grep-1.txt
grep-2.txt
grep-3.txt
iostreams-3.txt
grep: test: Ist ein Verzeichnis
test-1.c
test-2.c
unix-20210423.tex
cassini/home/peter/bo/2021ss/bs/20210423> grep -l Hello * 2> hello-error.txt
grep-1.txt
grep-2.txt
grep-3.txt
iostreams-3.txt
test-1.c
test-2.c
unix-20210423.tex
cassini/home/peter/bo/2021ss/bs/20210423> cat hello-error.txt
grep: test: Ist ein Verzeichnis
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-5.txt

deleted100644 → 0
+0 −12
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> grep -l Hello * > hello-files-and-error.txt 2>&1
cassini/home/peter/bo/2021ss/bs/20210423> cat hello-files-and-error.txt
grep-1.txt
grep-2.txt
grep-3.txt
iostreams-3.txt
iostreams-4.txt
grep: test: Ist ein Verzeichnis
test-1.c
test-2.c
unix-20210423.tex
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-6.txt

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo 'Fehler!!!' 1>&2
Fehler!!!
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-7.txt

deleted100644 → 0
+0 −4
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" > "test.bc"
cassini/home/peter/bo/2021ss/bs/20210423> bc < test.bc
4
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-8.txt

deleted100644 → 0
+0 −3
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | bc
4
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/iostreams-9.txt

deleted100644 → 0
+0 −10
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> ls -rt *.c *.cpp *.sh *.py *.tex *.diff              ls: Zugriff auf '*.cpp' nicht möglich: Datei oder Verzeichnis nicht gefunden
ls: Zugriff auf '*.py' nicht möglich: Datei oder Verzeichnis nicht gefunden
ls: Zugriff auf '*.diff' nicht möglich: Datei oder Verzeichnis nicht gefunden
 unix-20210423.tex   test-1.c   test-4.c      params-2.sh
 test-2.c            test-3.c   params-1.sh   params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423> ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null   unix-20210423.tex   test-1.c   test-4.c      params-2.sh
 test-2.c            test-3.c   params-1.sh   params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423> ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Apr  6 09:59 /dev/null
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/params-1.txt

deleted100644 → 0
+0 −17
Original line number Original line Diff line number Diff line
#!/bin/bash

echo $1
cassini/home/peter/bo/2021ss/bs/20210423> chmod 111 params-1.sh
cassini/home/peter/bo/2021ss/bs/20210423> ./params-1.sh
/bin/bash: ./params-1.sh: Keine Berechtigung
cassini/home/peter/bo/2021ss/bs/20210423> chmod 555 params-1.sh
cassini/home/peter/bo/2021ss/bs/20210423> ./params-1.sh

cassini/home/peter/bo/2021ss/bs/20210423> ./params-1.sh Foo
Foo
cassini/home/peter/bo/2021ss/bs/20210423> ./params-1.sh Foo Bar Baz
Foo
cassini/home/peter/bo/2021ss/bs/20210423> chmod 755 params-1.sh
cassini/home/peter/bo/2021ss/bs/20210423> ./params-1.sh Pruzzel Proe
Pruzzel
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/params-2.txt

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
#!/bin/bash

shift 2
echo $1
cassini/home/peter/bo/2021ss/bs/20210423> ./params-2.sh Foo Bar Baz
Bar
cassini/home/peter/bo/2021ss/bs/20210423> ./params-2.sh Foo Bar Baz Pruzzel Proe
Bar
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/params-3.sh

deleted100755 → 0
+0 −4
Original line number Original line Diff line number Diff line
#!/bin/bash

shift 2
echo $1

20210423/permissions-1.txt

deleted100644 → 0
+0 −8
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> cd test
cassini/home/peter/bo/2021ss/bs/20210423/test> cd ..
cassini/home/peter/bo/2021ss/bs/20210423> chmod -x test
cassini/home/peter/bo/2021ss/bs/20210423> cd test
bash: cd: test: Keine Berechtigung
cassini/home/peter/bo/2021ss/bs/20210423> chmod +x test
cassini/home/peter/bo/2021ss/bs/20210423> cd test
cassini/home/peter/bo/2021ss/bs/20210423/test>

20210423/pipes-1.txt

deleted100644 → 0
+0 −5
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g' | bc
8
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g' | bc
8
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/pipes-2.txt

deleted100644 → 0
+0 −6
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/' | bc                  6
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/'
4 + 2
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g'
4 + 4
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/pipes-3.txt

deleted100644 → 0
+0 −12
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g'
4 + 4
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g' | gzip
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g' | gzip | gunzip
4 + 4
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g' | gzip | gunzip | bc
8
cassini/home/peter/bo/2021ss/bs/20210423> echo "2 + 2" | sed -e 's/2/4/g' | gzip | gunzip | sed -e 's/4/3/g' | bc
6
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/pipes-4.txt

deleted100644 → 0
+0 −6
Original line number Original line Diff line number Diff line
 2142  find ~/bo/ -type f -name "*klausur*.pdf"
 2143  find ~/bo/ -type f -name "*klausur*.pdf" | grep "-fig[0-9]"
 2144  find ~/bo/ -type f -name "*klausur*.pdf" | grep "\-fig[0-9]"
 2145  find ~/bo/ -type f -name "*klausur*.pdf" | grep -v "\-fig[0-9]"
 2146  ls $(find ~/bo/ -type f -name "*klausur*.pdf" | grep -v "\-fig[0-9]")
 2147  zip -9 klausuren.zip $(find ~/bo/ -type f -name "*klausur*.pdf" | grep -v "\-fig[0-9]")

20210423/pipes-5.txt

deleted100644 → 0
+0 −14
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null   unix-20210423.tex   test-1.c   test-4.c      params-2.sh
 test-2.c            test-3.c   params-1.sh   params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423> ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null | cat
unix-20210423.tex
test-2.c
test-1.c
test-3.c
test-4.c
params-1.sh
params-2.sh
params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423> ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null | tail -1
params-3.sh
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/sed-1.txt

deleted100644 → 0
+0 −7
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> file_template=$(ls -rt *.c *.cpp *.sh *.py *.tex *.diff 2>/dev/null | tail -1)
cassini/home/peter/bo/2021ss/bs/20210423> echo $file_template                                  test-6.c
cassini/home/peter/bo/2021ss/bs/20210423> echo $file_template | sed -e 's/.*\.\(.*$\)/\1/'
c
cassini/home/peter/bo/2021ss/bs/20210423> echo $file_template | sed -e 's/\(.*\)\..*$/\1/'
test-6
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/test-5.c

deleted100644 → 0
+0 −7
Original line number Original line Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Bonjour le monde !\n");
  return 1;
}

20210423/test-6.c

deleted100644 → 0
+0 −7
Original line number Original line Diff line number Diff line
#include <stdio.h>

int main (void)
{
  printf ("Bonjour le monde !\n")
  return 1
}

20210423/unix-20210423.pdf

deleted120000 → 0
+0 −1
Original line number Original line Diff line number Diff line
../20210409/unix-20210409.pdf
 No newline at end of file

20210423/unix-20210423.tex

deleted120000 → 0
+0 −1
Original line number Original line Diff line number Diff line
../20210409/unix-20210409.tex
 No newline at end of file

20210423/while-1.txt

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> while true; do echo "Hello, world!"; sleep 1; done
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
^C
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/while-2.txt

deleted100644 → 0
+0 −11
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> while 1 < 2; do echo "Hello, world!"; sleep 1; done
bash: 2: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2021ss/bs/20210423> while [[ 1 < 2 ]]; do echo "Hello, world!"; sleep 1; done
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
Hello, world!
^C
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/while-3.txt

deleted100644 → 0
+0 −5
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> while [[ 1 ]]; do echo "Hello, world!"; sleep 1; doneHello, world!
Hello, world!
Hello, world!
^C
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/wildcards-1.txt

deleted100644 → 0
+0 −19
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> touch test-1.c test-2.c
cassini/home/peter/bo/2021ss/bs/20210423> ls -lrt
insgesamt 0
lrwxrwxrwx 1 peter peter 29 Apr 16 10:19 unix-20210423.pdf -> ../20210409/unix-20210409.pdf
lrwxrwxrwx 1 peter peter 29 Apr 16 12:06 unix-20210423.tex -> ../20210409/unix-20210409.tex
-rw-r--r-- 1 peter peter  0 Apr 23 11:34 test-2.c
-rw-r--r-- 1 peter peter  0 Apr 23 11:34 test-1.c
cassini/home/peter/bo/2021ss/bs/20210423> mkdir test
cassini/home/peter/bo/2021ss/bs/20210423> cd test/
cassini/home/peter/bo/2021ss/bs/20210423/test> mv ../test*.c
cassini/home/peter/bo/2021ss/bs/20210423/test> ls -l
insgesamt 0
cassini/home/peter/bo/2021ss/bs/20210423/test> ls -l ..
insgesamt 4
drwxr-xr-x 2 peter peter 4096 Apr 23 11:34 test
-rw-r--r-- 1 peter peter    0 Apr 23 11:34 test-2.c
lrwxrwxrwx 1 peter peter   29 Apr 16 10:19 unix-20210423.pdf -> ../20210409/unix-20210409.pdf
lrwxrwxrwx 1 peter peter   29 Apr 16 12:06 unix-20210423.tex -> ../20210409/unix-20210409.tex
cassini/home/peter/bo/2021ss/bs/20210423/test>

20210423/wildcards-2.txt

deleted100644 → 0
+0 −22
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> ls -l
insgesamt 8
drwxr-xr-x 2 peter peter 4096 Apr 23 11:37 test
lrwxrwxrwx 1 peter peter   29 Apr 16 10:19 unix-20210423.pdf -> ../20210409/unix-20210409.pdf
lrwxrwxrwx 1 peter peter   29 Apr 16 12:06 unix-20210423.tex -> ../20210409/unix-20210409.tex
-rw-r--r-- 1 peter peter 1045 Apr 23 11:36 wildcards-1.txt
cassini/home/peter/bo/2021ss/bs/20210423> touch test-1.c test-2.c
cassini/home/peter/bo/2021ss/bs/20210423> cd test/
cassini/home/peter/bo/2021ss/bs/20210423/test> echo mv ../test-*.c
mv ../test-1.c ../test-2.c
cassini/home/peter/bo/2021ss/bs/20210423/test> mv ../test-*.c
cassini/home/peter/bo/2021ss/bs/20210423/test> ls -l
insgesamt 0
cassini/home/peter/bo/2021ss/bs/20210423/test> cd ..
cassini/home/peter/bo/2021ss/bs/20210423> ls -l
insgesamt 8
drwxr-xr-x 2 peter peter 4096 Apr 23 11:37 test
-rw-r--r-- 1 peter peter    0 Apr 23 11:37 test-2.c
lrwxrwxrwx 1 peter peter   29 Apr 16 10:19 unix-20210423.pdf -> ../20210409/unix-20210409.pdf
lrwxrwxrwx 1 peter peter   29 Apr 16 12:06 unix-20210423.tex -> ../20210409/unix-20210409.tex
-rw-r--r-- 1 peter peter 1045 Apr 23 11:36 wildcards-1.txt
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/wildcards-3.txt

deleted100644 → 0
+0 −9
Original line number Original line Diff line number Diff line
cassini/home/peter/bo/2021ss/bs/20210423> mv -i ../find-*.txt
mv: das angegebene Ziel '../find-5.txt' ist kein Verzeichnis
cassini/home/peter/bo/2021ss/bs/20210423> echo mv -i ../find-*.txt
mv -i ../find-1.txt ../find-2.txt ../find-3.txt ../find-5.txt
cassini/home/peter/bo/2021ss/bs/20210423> echo mv -i ../find-[15].txt
mv -i ../find-1.txt ../find-5.txt
cassini/home/peter/bo/2021ss/bs/20210423> mv -i ../find-[15].txt
mv: '../find-5.txt' überschreiben? n
cassini/home/peter/bo/2021ss/bs/20210423>

20210423/xkcd

deleted100755 → 0
+0 −42
Original line number Original line Diff line number Diff line
#!/bin/sh

set -e

prefix="${1:-xkcd}"
suffix="$2"
url=$(xsel)

filebase="$prefix-$(echo $url | sed -e 's/^.*\///')"
filename="$filebase$suffix"
orig_filename=$(echo $filename | sed -e 's/\.png$/-orig.png/')
if [ -e "$orig_filename" ]; then
  echo -n "$orig_filename exists. Press ENTER to proceed, ^C to abort. "
  read junk
fi

if [ -e "$filename" ]; then
  mv "$filename" "$orig_filename"
fi

if [ "$prefix" = "xkcd" ]; then
  url2=$(echo $url | sed -e 's/\.png$/_2x.png/')
  filename2=$(echo $filename | sed -e 's/\.png$/_2x.png/')
  if [ -e "$filename2" ]; then
    echo -n "$filename2 exists. Press ENTER to proceed, ^C to abort. "
    read junk
  fi
  wget "$url" -O "$filename"
  wget "$url2" -O "$filename2"
  ls -l "$filename" "$filename2"
  test -s "$filename2" || rm "$filename2"
else
  wget "$url" -O "$filename"
  ls -l "$filename"
fi

if [ -e "$orig_filename" ]; then
  if diff "$orig_filename" "$filename"; then
    echo "$filename unchanged"
    mv "$orig_filename" "$filename"
  fi
fi