given the following array:
arr=("hello hello" "bye bye")
How can I print any element from arr
to stdout?
I tried to do it by the next way:
for line in ${arr[*]}; do
echo ${line}
done
But in this state, the output is:
hello
hello
bye
bye
And I want to get:
hello hello
bye bye