• + 0 comments

    Simply use mapfile:

    mapfile -t array
    echo "${array[@]}"