bash array
# create an array - just assign first value
arrayname[0]='VALUE'
# define an array
declare -a arrayname=(element1 element2 element3)
# get array element at index
${arrayname[2]}
# get all array elements
${arrayname[@]}
# get array length
${#arrayname[@]}#to create an array:
$ declare -a my_array
#set number of items with spaceBar seperation:
$ my_array = (item1 item2)
#set specific index item:
$ my_array[0] = item1vals=($(seq 0 0.1 2.5))
Also in C++:
- shell script current time
- git stash back
- teclado abnt arch linux
- regex last match
- linux install toilet
- pause in bash
- shell use command output as string
- refresh desktop entries
- What is the difference between git push origin and git push origin master
- gcc 7 install ubuntu
- sed output of command
- install horovod
- how to change font type size and color in ubuntu 18.0
- react native cannot connect to metro server
- vscode install commandline
- how to access postgres CLI
- install docker on wsl
- npm run serve in background
- shell script get arguments
- no source map sass
- remi repo
- wsl ubuntu update time
- wait-on yarn
- get string after character shell script