I have an array named test which has these contents:
a b c d e f.
I got these array from string which has :
a/b/c/d/e/f
I split the above string to an array using this:
test=$(echo $dUrl | tr "/" "\n")
Now I wish to get the test's first element using ${test[1]}, but its giving me nothing.
Where I'm making the mistake.