Files
bash-tut/arrays/slice.sh
2025-09-07 14:15:56 +02:00

7 lines
131 B
Bash
Executable File

#! /usr/bin/bash
family=("Marge" "Homer" "Bart" "Lisa" "Maggie")
echo "Kinder: ${family[@]:2:4}"
echo "Eltern: ${family[@]:0:2}"