I found the following example from here. But I can't understand how is array arr
is being defined.
a='domain.de;de;https'
$ arr=(${a//;/ })
What is the advantage of defining it like this?
Actually, I want to store an array inside an array of varying size like as follows:
declare -a Workspace=(
"${Folder[0]}" "CFD" "General,Markdown"
"${Folder[4]}" "GPU" "General,Markdown,Python,C,Java"
)
For example in above, I want to access the terms General
and Markdown
for CFD
.