User Tools

Site Tools


shell_progammierung

This is an old revision of the document!


Shell Programmierung (bash)

Umleiten

STDIN < 
STDOUT > >> 
STDERR 2> 

Bsp: STDERR auf STDOUT

2>&1

IF

Comparison:

if [ $VAR == "string" ]
   machwas
fi
if [ $VAR -eq 5 ]
   machwas
fi

Weitere Parameter: -lt, -gt, !=, <, >

TEST-Command

Check Files or Directories

test -d directory
test -e file
test -f file
test ! ( ausdruck)

WHILE

 while [ expression ]
 do
     dosomething
 done
shell_progammierung.1283776178.txt.gz · Last modified: 2021/04/24 07:38 (external edit)