You are viewing a single comment's thread. Return to all comments →
arr=() while read input || [[ -n "$input" ]]; do arr+=( $input ); done arr+=("${arr[@]}" "${arr[@]}"); echo "${arr[@]}"
I needed to include the [[ -n "$input" ]] part for some weird problem related reason
Seems like cookies are disabled on this browser, please enable them to open this website
Concatenate an array with itself
You are viewing a single comment's thread. Return to all comments →
I needed to include the [[ -n "$input" ]] part for some weird problem related reason