I have a string as:
Str='This string has "a substring"'
The string has commas so if I print the string i see:
echo "${Str}"
This string has "a substring".
If I input the command:
$ Tmp=( ${Str} )
$ echo "${Tmp[3]}"
"a
$ echo "${Tmp[4]}"
Substring"
Id like to print: a Substring
Any advice?
I can change the commas but it is essential that it will be printed from Str to Tmp