RosettaCodeData/Task/Array-length/UNIX-Shell/array-length.sh

4 lines
57 B
Bash

#!/bin/bash
array=("orange" "apple")
echo "${#array[@]}"