Readme.md aktualisiert.

This commit is contained in:
2025-11-21 11:22:28 +01:00
parent 815a66d808
commit 0939c771f3
13 changed files with 215 additions and 0 deletions

22
teil24/sort.sh Executable file
View File

@@ -0,0 +1,22 @@
#! /usr/bin/bash
family=("Marge" "Homer" "Bart" "Lisa" "Maggie")
neighbours=("Ned" "Maude" "Todd" "Rod")
echo "family=${family[@]}"
echo "Länge family: ${#family[@]}"
echo "neighbours=${neighbours[@]}"
echo "Länge neighbours: ${#neigbours[@]}"
merged=(${family[@]} ${neighbours[@]})
echo "merged=${merged[@]}"
echo "Länge merged: ${#merged[@]}"
# sorting the merged array
sorted=($(printf "%s\n" "${merged[@]}" | sort -n))
echo "sorted=${sorted[@]}"