RosettaCodeData/Task/Arrays/UNIX-Shell/arrays-2.sh

3 lines
71 B
Bash

count=${#alist[*]}
echo "The number of items in alist is ${#alist[*]}"