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

Target

Select target project
  • pgerwinski/bs
  • cloepke/bs
  • khaleeliyeh/bs
3 results
Select Git revision
Show changes
Commits on Source (75)
Showing
with 0 additions and 53 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
File deleted
#if defined (testconfig1)
#define FW_RELEASE 0x0123u /* BCD format, 16 bit */
#elif defined (testconfig2)
#define FW_RELEASE 0x4567u /* BCD format, 16 bit */
#!/bin/bash
APP_RELEASE_PATH=AppRelease.h
APP_CONFIGURATION=testconfig1
# grep: -n:Zeilennummer, -w:vollständiges Wort, -i:ignoriere Gross/Kleinschreibung
# cut: -d:Trennzeichen, -f1: auszugebende Felder
LINE=$(grep -nwi $APP_RELEASE_PATH -e $APP_CONFIGURATION | cut -d":" -f1)
LINE=$((LINE + 1))
# sed: -n:quiet, regex: suche nach '0x' und gib den String ab dort zurück
VERSION=$(sed -n ${LINE}p $APP_RELEASE_PATH | sed -n 's/.*\(0x\)/\1/p')
# Alternative:
# VERSION=$(sed -n ${LINE}p $APP_RELEASE_PATH | grep -o "0x[0-9a-f].*u)
# Ueberspringe die ersten zwei Zeichen aus $VERSION und gebe die folgenden zwei Zeichen zurück.
echo ${VERSION:2:2}.${VERSION:4:2}