Beruflich Dokumente
Kultur Dokumente
Automatische Variablen
Shellskript: #!/bin/bash
x=$( expr 40 + 2 )
sinn=$(expr 7 '*' 6)
oder: sinn=$[6*7]
$ echo $x 42
x=$[20+2]
Kontrollstrukturen
Komfort-Schreibweise: [ ]
Beispiele: test -w /etc/passwd -> false
(writable)
test -f /etc/passwd -> true
(ist normale Datei?)
case $wotag in
Montag) echo Wochenstart;;
Dienstag | Mittwoch | Donnerstag) echo zieht sich;;
upload 14,k15