Fr 26. Sep 10:59:59 CEST 2025/sh20250923sh.sh

#!/bin/bash

# (C) David Vajda
# 09/23/25
# Bash Std Excersize

firstname="linux"
lastname="tux"

if [[ "$firstname" == "$1" && "$lastname" == "$2" && -z "$3" ]]
then
    echo "you are a spy! this is not your real name!"
    echo "or it is?"
else
    echo "go on!"
    date
    i=0
    n=16
    while [ $i -lt $n ]
    do
        if [ $i -eq 1 ]
        then
            echo -n "1st., "
        elif [ $i -eq 2 ]
        then
            echo -n "2nd., "
        elif [ $i -eq 3 ]
        then
            echo -n "3rd., "
        fi
        echo "$i. hello"
        i=$(($i+1))
    done

    M=(Have You Ever Care For All Your Orders)
    i=0
    while [ $i -lt 16 ]
    do
        M+=("eot")
        i=$(($i+1))
    done
    i=0
    while [ $i -lt 16 ]
    do
        if [ "${M[$i]}" != "eot" ]
        then
            echo "${M[$i]}"
        fi
        i=$(($i+1))
    done

    t="head starts"
    for s in "${M[@]}"
    do
        t="$t $s"
    done
    t="$t msg ends"
    echo "THIS IS THE MSG $t"

    l=$(ls)
    i=0
    for s in $l
    do
        echo -n " $s"
        i=$(($i+1))
        if [ $(($i % 8 )) == 0 ]
        then
            echo "stop!!!"
            break
        fi
    done
    /bin/bash sh20250923sh.sh "$firstname" "$lastname"
fi