langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
6
Task/Arrays/UNIX-Shell/arrays-1.sh
Normal file
6
Task/Arrays/UNIX-Shell/arrays-1.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
alist=( item1 item2 item3 ) # creates a 3 item array called "alist"
|
||||
declare -a list2 # declare an empty list called "list2"
|
||||
declare -a list3[0] # empty list called "list3"; the subscript is ignored
|
||||
|
||||
# create a 4 item list, with a specific order
|
||||
list5=([3]=apple [2]=cherry [1]=banana [0]=strawberry)
|
||||
Loading…
Add table
Add a link
Reference in a new issue