• + 0 comments
    declare -a array=()
    
    while read r; do
        array=("${array[@]}" "$r")
    done
    echo ${array[@]}