13 lines
244 B
Bash
Executable File
13 lines
244 B
Bash
Executable File
#! /usr/bin/bash
|
|
# Datei slice.sh
|
|
|
|
family=("Marge" "Homer" "Bart" "Lisa" "Maggie" "Abe" "Herb" "Patty" "Selma")
|
|
|
|
echo "family=${family[@]}"
|
|
parents=${family[@]:0:2}
|
|
kids=${family[@]:2:2}
|
|
|
|
echo "Eltern: ${parents[@]}"
|
|
echo "Kinder: ${kids[@]}"
|
|
|