Files
bash-programming-from-scratch/manuscript/resources/code/BashScripting/for-elements.sh
2021-10-05 19:35:55 +02:00

9 lines
103 B
Bash

#!/bin/bash
array=(Alice Bob Eve Mallory)
for element in "${array[@]:0:2}"
do
echo "$element"
done