#!/bin/bash
# (c) david vajda
# std bash skript uebung
# 10/18/25
firstname="david"
lastname="vajda"
if [[ "$1" == "$firstname" && "$2" == "$lastname" && -z "$3" ]]
then
    echo "that's me"
else
    date
    echo "hello world"
    ending=("st" "nd" "rd" ".")
    i=3
    while [ $i -lt 10 ]
    do
        ending+=("$i")
        i=$(($i+1))
    done
    i=0
    while [ $i -lt 10 ]
    do
        echo "hello ${ending[$i]}."
        i=$(($i+1))
    done
    M=("es ist ebenso eine gute idee fuer das zaehlen den modulo zu nehmen und damit eine entscheidung zu treffen. wie? ganz einfach: man nimmt modulo und vor allem eines: 0...^ irgendetwas. probiere es noch mal")
    ending2=("st" "nd" "rd" ".")
    i=0
    # while [ $i -lt 10 ]
    # do
        # echo "$i $(($i/3))"
        # echo "$i $((($i/3)))"
        # i=$(($i+1))
    # done
    # while [ $i -lt 10 ]
    # do
    #     echo "hello ${ending2hh[$((($i/3)*))]}."
    #     i=$(($i+1))
    # done
    echo "egal, das problem regle ich spaeter mal"
    /bin/bash "$0" "$firstname" "$lastname"
fi