if [ EXPRESSION ]
then
...
else
...
fi
01 August 2024
if [ EXPRESSION ]
then
...
else
...
fi
if programmaufruf
then
...
else
...
fi
if [ -f "$1" ]; then
echo "Datei vorhanden"
else
echo "Datei NICHT vorhanden"
fi
while [bedingung] # oder auch: while-kommando
# while read $*
do
kommando-1
...
kommando-n
done
while read ELEMENT; do
echo $ELEMENT
done <$1
var=$((i=1))
while read LINE; do
echo "$i\t: $LINE"
i=$((i+1))
done < $1