This is how arrays are used....
Code:
array=( zero one two three four five )
echo ${array[0]} # zero
echo ${array:0} # zero
# Parameter expansion of first element.
echo ${array:1} # ero
# Parameter expansion of first element,
#+ starting at position #1 (2nd character).
echo ${#array} # 4
# Length of first element of array.
echo ${array[2]}
# two
<edit> If your doubt isn't clarified yet .... post your code...That will make things easier.
Welcome to LQ