LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   asign multiple rows from query to a variable (https://www.linuxquestions.org/questions/linux-newbie-8/asign-multiple-rows-from-query-to-a-variable-4175511473/)

mierdatuti 07-18-2014 02:07 AM

asign multiple rows from query to a variable
 
Hi,

I have a oracle query with multiple rows.
I assign into a variable but when I do echo, I would like to show like these:

echo $res
aaaaa 111111
bbbbb 222222
..........


but it shows me:

aaaaa 111111 bbbbbb 22222 .....

evo2 07-18-2014 02:12 AM

Hi,

does the following help?
Code:

echo "$res"
Evo2.


All times are GMT -5. The time now is 05:09 PM.