Sort by

recency

|

150 Discussions

|

  • + 1 comment

    or just xargs

  • + 0 comments

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

  • + 0 comments

    Simply use mapfile:

    mapfile -t array
    echo "${array[@]}"
    
  • + 0 comments

    try-> tr $'\n' ' '

  • + 0 comments
    i=0
    while read input
    do
    x[$i]=$input
    i=$((i+1))
    done
    echo ${x[@]}