So I've searched quite a bit for this and I'm pretty new to Shell, I want to iterate over Resultset rows in SHELL script and for each row I want to execute some code using each column of the current row. Lets assume the resultset look like this.
Query                             Priority  Size 
---------------------------------------------------  
this is a sentence to execute      high    124400 
this is another example            low     15000000
...
So how do I manage to iterate over this Resultset and storing each column into his own variable? Here is an exemple for the first line:
var1="this is a sentence to execute"
var2="high"
var3=124400
#repeat process for next line
 
     
    