bash에서 배열 사용 admin 2010.11.05 #! /bin/bashFILE=”[aeiou]”declare -a ARRAYCOUNT=$( grep “$FILE” /var/log/httpd/access_log |wc -l )ARRAY=( “$COUNT” )echo “count of array elements: ${#ARRAY[@]}”echo ” list of array elements: ${ARRAY[@]}”ls /var/log/httpd/access_log.[0-9].gz |{while read LOG ; doCOUNT=$( gzcat “$LOG” |grep “$FILE” |wc -l )ARRAY=( ${ARRAY[@]} “$COUNT” )echo “count of array elements: ${#ARRAY[@]}”echo ” list of array... Read More..