# 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>
* [http://penguinpetes.com/b2evo/index.php?title=how_the_one_liner_for_loop_in_bash_goes Penguin Pete]
* [[wp:Bash|Wikipedia page]]
* [https://ss64.com/bash/test.html Bash tests] <code>-f -d -x -w -Z </code> What do all the file test options mean?
[[Category:System Administration]]