mirror of
https://github.com/eddyem/lectures.git
synced 2025-12-06 10:45:09 +03:00
7 lines
180 B
Bash
7 lines
180 B
Bash
#!/bin/bash
|
|
|
|
array=(1 2 3 4 [5]=next [10]=last)
|
|
echo "array with size ${#array[*]} and indexes ${!array[*]}: ${array[*]}"
|
|
echo "array[4]=${array[4]}, array[10] len=${#array[10]}"
|
|
|