You can simply read each line from the file and assign it to an array. #!/bin/bash i=0 while read line do arr[$i]="$line" i=$((i+1)) ...
確定! 回上一頁