Answers for "how to use list in bash script"

6

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
Posted by: Guest on July-11-2020
1

bash list

mkdir dir1
ls
dir1
Posted by: Guest on March-05-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language