Linux Terminal Glossary
›
Bash Scripting
arr=(one two three)
Category:
Bash Scripting
arr=(one two three)
Copy command
Declare an indexed array with three elements
Creates a list (array) with three elements. Access them with ${arr[0]}, ${arr[1]}, ${arr[2]}.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.