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
  • 2015ss
  • 2016ss
  • 2016ws
  • 2017ss
  • 2017ws
  • 2018ws
  • 2019ss
  • 2019ws
  • 2020ws
  • 2021ws
  • 2022ws
  • MPeth-2022ws-patch-01682
12 results

Target

Select target project
  • pgerwinski/es
  • MPeth/es
2 results
Select Git revision
  • 2015ss
  • 2016ss
  • 2016ws
  • 2017ss
  • 2017ws
  • 2018ws
  • 2019ss
  • 2019ws
  • 2020ws
  • 2021ws
  • 2022ws
  • 2023ws
  • 2024ss
  • 2025ss
14 results
Show changes
Showing
with 1327 additions and 0 deletions
#!/bin/bash
/usr/bin/vim -X -c 'set sw=2' -c 'set expandtab' -c 'set ai' -c 'set nowrap' "$@"
clear
shift $(( $# - 1 ))
cat "$1"
cp -pi bc-{1,2}
cassini/home/peter/bo/2022ws/es/20221005> echo cp -pi bc-{1,2}
cp -pi bc-1 bc-2
cassini/home/peter/bo/2022ws/es/20221005>
Hallo.
cassini/home/peter/bo/2022ws/es/20221012> host m31.gerwinski.de
m31.gerwinski.de has address 88.198.170.60
m31.gerwinski.de mail is handled by 10 mx2.gerwinski.de.
cassini/home/peter/bo/2022ws/es/20221012> nc 88.198.170.60 25
220 mx1.gerwinski.de ESMTP Exim 4.94.2 Wed, 12 Oct 2022 15:34:28 +0200
HELO cassini
250 mx1.gerwinski.de Hello cassini [195.37.15.85]
MAIL FROM: Elon Musk <musk@example.com>
250 OK
RCPT TO: Peter Gerwinski <peter@gerwinski.de>
250 Accepted
From: Steve Jobs <jobs@example.com>
500 unrecognized command
DATA
354 Enter message, ending with "." on a line by itself
From: Steve Jobs <jobs@example.com>
To: Bill Gates <gates@example.com>
Subject: Hi! B-)
Hi, Bill. How are you?
Greetings,
S.
.
250 OK id=1oibti-006flc-5o
QUIT
221 mx1.gerwinski.de closing connection
cassini/home/peter/bo/2022ws/es/20221012>
File added
This diff is collapsed.
cassini/home/peter/bo/2022ws/es/20221012> grep '".*"' test.html
<img src="quadrocopter.jpg"/>
cassini/home/peter/bo/2022ws/es/20221012> grep -o '".*"' test.html
"quadrocopter.jpg"
cassini/home/peter/bo/2022ws/es/20221012> grep -o '".*"' test.html | sed -e 's/"//g'
quadrocopter.jpg
cassini/home/peter/bo/2022ws/es/20221012>
<html>
<h1>Ein Quadrocopter!</h1>
<img alt="Foto: Quadrocopter" src="quadrocopter.jpg"/>
</html>
cassini/home/peter/bo/2022ws/es/20221012> grep -o '".*"' test-02.html | sed -e 's/"//g'
Foto: Quadrocopter src=quadrocopter.jpg
cassini/home/peter/bo/2022ws/es/20221012> grep -o '".*"' test-02.html
"Foto: Quadrocopter" src="quadrocopter.jpg"
cassini/home/peter/bo/2022ws/es/20221012> grep -o '<img.*src=".*"' test-02.html
<img alt="Foto: Quadrocopter" src="quadrocopter.jpg"
cassini/home/peter/bo/2022ws/es/20221012> grep -o '<img.*src=".*"' test-02.html | sed -e 's/^.*src=".*".*$/bla/'
bla
cassini/home/peter/bo/2022ws/es/20221012> grep -o '<img.*src=".*"' test-02.html | sed -e 's/^.*src="\(.*\)".*$/\1/'
quadrocopter.jpg
cassini/home/peter/bo/2022ws/es/20221012>
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 1;
}
cassini/home/peter/bo/2022ws/es/20221012> cat hello-01.c
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 0;
}
cassini/home/peter/bo/2022ws/es/20221012> ./hello-01
Hello, world!
cassini/home/peter/bo/2022ws/es/20221012> echo $?
0
cassini/home/peter/bo/2022ws/es/20221012> cat hello-02.c
#include <stdio.h>
int main (void)
{
printf ("Hello, world!\n");
return 1;
}
cassini/home/peter/bo/2022ws/es/20221012> ./hello-02
Hello, world!
cassini/home/peter/bo/2022ws/es/20221012> echo $?
1
cassini/home/peter/bo/2022ws/es/20221012>
cassini/home/peter/bo/2022ws/es/20221012> if ./hello-01; then echo "Erfolg!"; else echo "Leider verloren."; fi
Hello, world!
Erfolg!
cassini/home/peter/bo/2022ws/es/20221012> if ./hello-02; then echo "Erfolg!"; else echo "Leider verloren."; fi
Hello, world!
Leider verloren.
cassini/home/peter/bo/2022ws/es/20221012>
cassini/home/peter/bo/2022ws/es/20221012> true
cassini/home/peter/bo/2022ws/es/20221012> false
cassini/home/peter/bo/2022ws/es/20221012> which true
/bin/true
cassini/home/peter/bo/2022ws/es/20221012> which false
/bin/false
cassini/home/peter/bo/2022ws/es/20221012> bedingung=true
cassini/home/peter/bo/2022ws/es/20221012> if $bedingung; then echo "Ja."; else echo "Nein."; fi
Ja.
cassini/home/peter/bo/2022ws/es/20221012> bedingung=false
cassini/home/peter/bo/2022ws/es/20221012> if $bedingung; then echo "Ja."; else echo "Nein."; fi
Nein.
cassini/home/peter/bo/2022ws/es/20221012>
cassini/home/peter/bo/2022ws/es/20221012> true
cassini/home/peter/bo/2022ws/es/20221012> echo $?
0
cassini/home/peter/bo/2022ws/es/20221012> false
cassini/home/peter/bo/2022ws/es/20221012> echo $?
1
cassini/home/peter/bo/2022ws/es/20221012>
../common/logo-hochschule-bochum-cvh-text-v2.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
../common/pgslides.sty
\ No newline at end of file
cassini/home/peter/bo/2022ws/es> echo "2^50" | bc
1125899906842624
cassini/home/peter/bo/2022ws/es> cat test-02.html | grep -o '<img.*src=".*"' | sed -e 's/^.*src="\(.*\)".*$/\1/'
cat: test-02.html: Datei oder Verzeichnis nicht gefunden
cassini/home/peter/bo/2022ws/es> cd 20221012/
cassini/home/peter/bo/2022ws/es/20221012> cat test-02.html | grep -o '<img.*src=".*"' | sed -e 's/^.*src="\(.*\)".*$/\1/'
quadrocopter.jpg
cassini/home/peter/bo/2022ws/es/20221012> cat $(find . -name "*.html") | grep -o '<img.*src=".*"' | sed -e 's/^.*src="\(.*\)".*$/\1/'
quadrocopter.jpg
quadrocopter.jpg
cassini/home/peter/bo/2022ws/es/20221012>
../common/quadrocopter.jpg
\ No newline at end of file
<html>
<h1>Ein Quadrocopter!</h1>
<img src="quadrocopter.jpg"/>
</html>