0
#!/bin/bash
read()
{
count=0
cat localfile |
while read line
do
FILE[$((count += 1))]="$line"
done
}
read
for((i=0;i<${#FILE[@]});i++)
do
echo ${FILE[i]}
done
에코의 결과는 전체가 비어 있습니다. FILE 배열을 가져올 방법이 있습니까?다른 while 루프에서 변수를 가져 오는 방법은 무엇입니까?