Well I learning Shell Script this one thing is annoying me
I cant find what actually ${ } suppose to do
I google around to found out that ${ } is used for substitution
but what I not able to understand is here
If ${ } is suppose to do a substitution then
distro=("redhat" "debian" "gentoo")
echo ${distro[0]}
echo ${distro[2]}
echo ${#distro[@]}
How come it running the above code when there isnt any substitution .
I’m wrong on this
man bash, search for${with/\${, pressna couple of time and voila..and
Checking the previous paragraphs you will also find this: