/media/sda-magnetic/david/Dokumente-16-2024-08-01/informatikUmathematik/excersize20240906/bash20240906.sh


#!/bin/bash

name="Vajda"
firstname="David"

if [[ "$name" == "$2" && "$firstname" == "$1" ]]
then
    echo "Das bin ich"
elif [ "$name" == "$1" ]
then
    echo "Das koennte ich sein"
else
    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1))."
        i=$(($i+1))
    done
    a=(A B C D)
    a+=(E F G H)
    i=0
    while [ $i -lt 8 ]
    do
        echo "${a[$i]}"
        i=$(($i+1))
    done
    for s in "${a[@]}"
    do
        echo "$s"
    done
    l=$(ls)
    #for s in $l
    #do
    #    echo "$l"
    #done
fi