Open main menu

Changes

1 byte removed ,  14:36, 15 July 2016
m
no edit summary
# the # character gives us the count of the array
echo "we have ${#fruits[@]} fruits available"
printf "%s\n" "${fruits[@]}"
printf "%s\n" "${fruits[@]}"
echo "we have ${#vegetables[@]} vegetables available"
 
printf "%s\n" "${vegetables[@]}"
</source>
4,558

edits