我在读取输入并将其存储在 shell 脚本中的数组中时遇到了一些问题。请帮忙
declare -a array_name
echo "How many groups you want to enter?"
read group_count
echo "enter $group_count groups: "
for(( c = 0 ; c <= $group_count ; c++))
do
read abc_elements
while read abc_elements
do
array_name[$c] = "$abc_elements"
done
done
echo -e "${array_name[@]}"
谢谢你。