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