Horje
bash list Code Example
how to make a list bash
#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] = item1
bash list
mkdir dir1
ls
dir1
Source: ubuntu.com
bash for loop string array
## declare an array variable
declare -a arr=("element1" "element2" "element3")

## now loop through the above array
for i in "${arr[@]}"
do
   echo "$i"
   # or do whatever with individual element of the array
done




Shell

Related
how to add a custom zsh aliases Code Example how to add a custom zsh aliases Code Example
git pull your local changes will be overwritten by merge Code Example git pull your local changes will be overwritten by merge Code Example
linux process holding deleted file Code Example linux process holding deleted file Code Example
pip install pytorch windows Code Example pip install pytorch windows Code Example
pm2 remove id Code Example pm2 remove id Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12