./vhdl20250304/bash20250216.sh


#!/bin/bash

vorname="David"
nachname="Vajda"

if [[ "$1" == "$vorname" && "$2" == "$nachname" ]]
then
    echo "Das bin ich"
elif [[ "$1" == "$vorname" && -z "$2" ]]
then
    echo "moeglicherweise bin ich das"
else
    date
    echo "Hallo Welt"
    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1))."
        i=$(($i+1))
    done
    M=(a b c d)
    M+=(e f g h)
    i=0
    while [ $i -lt 8 ]
    do
        echo "${M[$i]}"
        i=$(($i+1))
    done
    for s in "${M[@]}"
    do
        echo "$s"
    done
    l=$(ls)
    i=0
    for s in $l
    do
        echo "$s"
        if [ $i -ge 8 ]
        then
            break
        fi
        i=$(($i+1))
    done
    /bin/bash "$0" "$vorname" "$nachname"
    /bin/bash "$0" "$vorname"
fi