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