Compare commits
16
Commits
1.2
...
c750cb4c69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c750cb4c69 | ||
|
|
1af089d106 | ||
|
|
dcaafa8604 | ||
|
|
c3f9740332 | ||
|
|
81a7c96f7f | ||
|
|
89557b8e36 | ||
|
|
5d830cbae4 | ||
|
|
fb7c410e8a | ||
|
|
e4190bae83 | ||
|
|
6545189eb0 | ||
|
|
4e375b5d08 | ||
|
|
2be3db4187 | ||
|
|
9dc5a2550c | ||
|
|
6f82b9eda4 | ||
|
|
28dada6046 | ||
|
|
deeb9080fe |
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
ll
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
shopt -s expand_aliases # Aktiviert Aliase
|
||||||
|
alias ll='ls -la'
|
||||||
|
ll
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur.
|
||||||
|
Hi omnes lingua, institutis, legibus inter se differunt.
|
||||||
|
Gallos ab Aquitanis Garunna flumen, a Belgis Matrona et Sequana dividit.
|
||||||
|
Horum omnium fortissimi sunt Belgae, propterea quod a cultu atque humanitate provinciae longissime absunt, minimeque ad eos mercatores saepe commeant atque ea quae ad effeminandos animos pertinent, important, proximique sunt Germanis, qui trans Rhenum incolunt, quibuscum continenter bellum gerunt.
|
||||||
|
Qua de causa Helvetii quoque reliquos Gallos virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, cum aut suis finibus eos prohibent aut ipsi in eorum finibus bellum gerunt.
|
||||||
|
Eorum una pars, quam Gallos obtinere dictum est, initium capit a flumine Rhodano, continetur Garumna flumine, Oceano, finibus Belgarum, attingit etiam ab Sequanis et Helvetiis flumen Rhenum, vergit ad septentriones.
|
||||||
|
Belgae ab extremis Galliae finibus oriuntur, pertinent ad inferiorem partem fluminis Rheni, spectant in septentrionem et orientem solem.
|
||||||
|
Aquitania a Garunna flumine ad Pyrenaeos montes et eam partem Oceani quae est ad Hispaniam pertinet; spectat inter occasum solis et septentriones.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
backup.txt
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
Simpson, Marge
|
||||||
|
Simpson, Homer
|
||||||
|
simpson, Abe
|
||||||
|
Simpson, Bart
|
||||||
|
Simpson, Lisa
|
||||||
|
Simpson, Maggie
|
||||||
|
Powell, Herb
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
--- Lehrer -----
|
||||||
|
Skinner, Seymour
|
||||||
|
Krababel, Edna
|
||||||
|
Hoover, Elisabeth
|
||||||
|
Largo, Dewey
|
||||||
|
|
||||||
|
--- Schüler ----
|
||||||
|
2: Powell, Janey
|
||||||
|
2: Wiggum, Ralph
|
||||||
|
2: Simpson, Lisa
|
||||||
|
2: Shorter, Becky
|
||||||
|
2: Taylor, Alison
|
||||||
|
4: Kyle
|
||||||
|
4: Clark, Lewis
|
||||||
|
4: van Houten, Milhouse
|
||||||
|
4: Simpson, Bart
|
||||||
|
4: Muntz, Nelson
|
||||||
|
4: Borton, Wendell
|
||||||
|
4: Prince, Martin
|
||||||
|
6: Starbeam, Dolph
|
||||||
|
6: Jones, Jimbo
|
||||||
|
6: Zzyswincz, Kearney
|
||||||
|
?: Zörker, Uter
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Burns, Monty
|
||||||
|
Smithers, Waylon
|
||||||
|
Carlson, Carl
|
||||||
|
Leonard, Lenny
|
||||||
|
Simpson, Homer
|
||||||
|
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#! ./mybang
|
||||||
|
def main():
|
||||||
|
print("Hallo aus teil20!")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
#! /usr/bin/node
|
||||||
|
// Datei: hello.js
|
||||||
|
|
||||||
|
console.log('Hallo von JavaScript')
|
||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#! ./mybang
|
||||||
|
# Datei: hello.py
|
||||||
|
|
||||||
|
def main():
|
||||||
|
print("Hallo von Python")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#! /usr/bin/bash
|
||||||
|
# Datei: mybang
|
||||||
|
|
||||||
|
echo "0:${0}"
|
||||||
|
echo "1:${1}"
|
||||||
|
echo "2:${2}"
|
||||||
|
|
||||||
|
if [[ "${USER}" == "pi" ]]; then
|
||||||
|
echo "User pi darf python ausführen."
|
||||||
|
python ${1}
|
||||||
|
else
|
||||||
|
echo "Du darfst kein Python ausführen."
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
*.bak
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
s/Simpson/Thompson/
|
||||||
|
s/Flanders/Flunders/
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
echo "Hello" | sed 's/Hello/Bye/'
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
Simpson, Marge
|
||||||
|
Simpson, Homer
|
||||||
|
Simpson, Maggie
|
||||||
|
Simpson, Lisa
|
||||||
|
Simpson, Bart
|
||||||
|
|
||||||
|
#FLANDERS-START
|
||||||
|
Flanders, Maude
|
||||||
|
Flanders, Ned
|
||||||
|
Flanders, Rod
|
||||||
|
Flanders, Todd
|
||||||
|
#FLANDERS-END
|
||||||
|
|
||||||
|
Wiggum, Sarah
|
||||||
|
Wiggum, Clancy
|
||||||
|
Wiggum, Ralph
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
*.bak
|
||||||
Executable
+19
@@ -0,0 +1,19 @@
|
|||||||
|
#! /usr/bin/bash
|
||||||
|
#Datei: family_case.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
case ${1} in
|
||||||
|
'Homer'|'Marge'|'Bart'|'Lisa')
|
||||||
|
echo "Familie Simpson"
|
||||||
|
;;
|
||||||
|
'Ned'|'Maude'|'Todd'|'Rod')
|
||||||
|
echo "Familie Flanders"
|
||||||
|
;;
|
||||||
|
'Clancy'|'Sarah'|'Ralph')
|
||||||
|
echo "Familie Wiggum"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "unbekannte Familie"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
# Datei teil23/family_if.sh
|
||||||
|
|
||||||
|
if [[ "${1}" == "Homer" || "${1}" == "Marge" || "${1}" == "Bart" || "${1}" == "Lisa" ]]; then
|
||||||
|
echo "Familie Simpson"
|
||||||
|
elif [[ "${1}" == "Ned" || "${1}" == "Maude" || "${1}" == "Todd" || "${1}" == "Rod" ]]; then
|
||||||
|
echo "Familie Flanders"
|
||||||
|
elif [[ "${1}" == "Clancy" || "${1}" == "Sarah" || "${1}" == "Ralph" ]]; then
|
||||||
|
echo "Familie Wiggum"
|
||||||
|
else
|
||||||
|
echo "unbekante Familie"
|
||||||
|
fi
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
*.bak
|
||||||
Executable
+70
@@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
display_help() {
|
||||||
|
echo "Usage: ${0} [options]"
|
||||||
|
echo "Options:"
|
||||||
|
echo " -h, --help Show this help message"
|
||||||
|
echo " -v, --verbose Enable verbose mode"
|
||||||
|
echo " -f, --file <file> Specify a file"
|
||||||
|
echo " -n, --number <num> Specify a number (default: 42)"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Universelle Parameterparser-Funktion
|
||||||
|
parse_args() {
|
||||||
|
POSITIONAL=()
|
||||||
|
while [[ $# -gt 0 ]]; do
|
||||||
|
case "$1" in
|
||||||
|
-h|--help)
|
||||||
|
display_help "$@"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-v|--verbose)
|
||||||
|
VERBOSE=true
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-f|--file)
|
||||||
|
if [[ -z "$2" || "$2" == -* ]]; then
|
||||||
|
echo "Error: --file requires a non-empty argument."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
FILE="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
-n|--number)
|
||||||
|
if [[ -z "$2" || "$2" == -* ]]; then
|
||||||
|
echo "Error: --number requires a non-empty argument."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
NUMBER="$2"
|
||||||
|
shift 2
|
||||||
|
;;
|
||||||
|
--) # Explicit end of options
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
-*) # Unknown option
|
||||||
|
echo "Error: Unknown option $1"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
*) # Positional argument
|
||||||
|
POSITIONAL+=("$1")
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
set -- "${POSITIONAL[@]}" # Restore positional parameters
|
||||||
|
|
||||||
|
# Defaults
|
||||||
|
VERBOSE="${VERBOSE:-false}"
|
||||||
|
NUMBER="${NUMBER:-42}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Aufruf der Funktion mit allen Skriptargumenten
|
||||||
|
parse_args "$@"
|
||||||
|
|
||||||
|
# Beispielnutzung
|
||||||
|
echo "Verbose mode: $VERBOSE"
|
||||||
|
echo "File: ${FILE:-<not set>}"
|
||||||
|
echo "Number: $NUMBER"
|
||||||
|
echo "Positional arguments: $@"
|
||||||
|
|
||||||
Reference in New Issue
Block a user