Arrays in bash.need help

:confused:

  Is it possible to delete array elements dynamically.For instance,consider an array\( a b c d \) ,now can i delete array[2] \(the third element 'c'\).So that the array becomes array\(a b d\)..

Thanks in advance!!

Use the bash unset builtin:

$ unset you_array[2]