#!/bin/bash # (C) David Vajda # 2025-07-03 # Bash script excersize firstname="David" lastname="Vajda" if [[ "$1" == "$firstname" && "$2" == "$lastname" && -z "$3" ]] then echo "that's me!" elif [[ "$1" == "$firstname" && -z "$2" ]] then echo "maybe that's me" else 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+=(1 2 3 4) 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 echo "$s" i=$((($i+1)%8)) if [ $i -eq 0 ] then break fi done /bin/bash "$0" "$firstname" "$lastname" /bin/bash "$0" "$firstname" fi