Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
How to declare an array in bash ?
Answer

We can explicitly create an array by using the declare command:

$ declare -a my_array

Declare, in bash, it's used to set variables and attributes. In this case, since we provided the -a option, an indexed array has been created with the "my_array" name.


Question
How to declare an array in bash ?
Answer
?

Question
How to declare an array in bash ?
Answer

We can explicitly create an array by using the declare command:

$ declare -a my_array

Declare, in bash, it's used to set variables and attributes. In this case, since we provided the -a option, an indexed array has been created with the "my_array" name.

If you want to change selection, open document below and click on "Move attachment"

How to use arrays in bash script - LinuxConfig.org
in a moment. SUBSCRIBE TO NEWSLETTER Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials. Create indexed or associative arrays by using declare <span>We can explicitly create an array by using the declare command: $ declare -a my_array Declare, in bash, it's used to set variables and attributes. In this case, since we provided the -a option, an indexed array has been created with the "my_array" name. Associative arrays can be created in the same way: the only thing we need to change is the option used: instead of lowercase -a we must use the -A option of the declare command: $ decla

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.