• + 1 comment

    arr=()

    while IFS= read -r line do if [[ "line") fi done

    echo "${arr[@]}"