# -*- sh -*- # @@PLEAC@@_NAME # @@SKIP@@ Bash # @@PLEAC@@_WEB # @@SKIP@@ http://tiswww.case.edu/php/chet/bash/bashtop.html # @@PLEAC@@_4.0 # declaring an array declare -a ary # declaring + defining single_level = ( this that the other ) # @@INCOMPLETE@@ # @@PLEAC@@_4.1 # pushing at the end of an array ary[${#ary[@]}]=whatever # @@INCOMPLETE@@ # @@PLEAC@@_4.4 for element in "${list[@]}"; do echo $element done # @@INCOMPLETE@@