bash-3.2$ ls tp* tp tp1 tp2 tp3 tp4 bash-3.2$fnarray=($(ls tp*)) bash-3.2$ echo ${#fnarray[*]} 5 bash-3.2$ echo ${fnarray[2]} tp2