#!/bin/bash
firstname="David"
lastname="Vajda"
if [[ "$1" == "$firstname" && "$2" == "$lastname" ]]
then
echo "Das bin ich"
/bin/bash ./bash20240819.sh "David"
elif [[ "$1" == "$firstname" && -z "$2" ]]
then
echo "Das koennte ich sein"
/bin/bash ./bash20240819.sh "nothing"
elif [[ "$1" == "nothing" ]]
then
echo "Ende"
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)
for s in "${a[@]}"
do
echo "$s"
done
i=0
while [ $i -lt 8 ]
do
echo "${a[$i]}"
i=$(($i+1))
done
l=$(ls)
for s in $l
do
echo "$s"
done
/bin/bash ./bash20240819.sh "David" "Vajda"
fi