title: Store query in array in bash
body: <p>My script need to store in a structure the result of a query:</p>
  
  <pre><code> #!/bin/bash
   user="..."
   psw="..."
   database="..."
   query="select name, mail from t"
   customStructure=$(mysql -u$user -p$psw $database -e "$query";)
  </code></pre>
  
  <p>I've no idea how store the array of {name, mail} from query result..</p>
  
  <p>I need structure like this:</p>
  
  <pre><code> array=[ [name1,mail1] , [name2,mail2], ....., [nameN, mailN] ]
  </code></pre>
  
  <p>Is there a way to do this in bash?</p>