You are viewing a single comment's thread. Return to all comments →
arr=() while read line || [[ -n "$line" ]]; do arr+=($line); done newArr=(${arr[@]}) for (( i=0; i<2; i++ )); do newArr+=(${arr[@]}); done echo ${newArr[*]}
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 →