power.sh für mehrdimensionale Arrays.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#! /usr/bin/bash
|
||||
# File: iterate.sh
|
||||
|
||||
# Array of numbers
|
||||
fib=(0 1 2 3 5 8)
|
||||
@@ -13,6 +14,7 @@ for name in "${family[@]}"
|
||||
echo "for: name=${name}"
|
||||
done
|
||||
echo "---"
|
||||
|
||||
# C-ähnliche Schleife im Index
|
||||
len=${#family[@]}
|
||||
|
||||
|
Reference in New Issue
Block a user