Categories Java Linux

[Linux] – Working with arrays in bash

Khởi tạo array:

1
2
array=(1234 3241 2343234)
array=("first element" "second element")

Khởi tạo với index:

1
array=([3]='fourth element' [4]='fifth element')

Gán giá trị:

1
array[0] = 1234

More From Author

Leave a Reply

Your email address will not be published. Required fields are marked *