./vhdl20250304/bash20250303.sh


#!/bin/bash

vorname="David"
nachname="Vajda"

if [[ "$vorname" == "$1" && "$nachname" == "$2" ]]
then
    echo "that's me"
elif [[ "$vorname" == "$1" && -z "$2" ]]
then
    echo "maybe I"
else
    date
    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1)).s"
        i=$(($i+1))
    done
    M=(1 2 3 4)
    N=(a b c d)
    i=0
    while [ $i -lt 4 ]
    do
        echo "(${M[$i]},${N[$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