title: How to initialize a bash array with output piped from another command?
body: <p>Is there any way to pipe the output of a command which lists a bunch of numbers (each number in a separate line) and initialize a bash array with those numbers? </p>
  
  <p>Details: 
  This lists 3 changelist numbers which have been submitted in the following date range. The output is then piped to <code>cut</code> to filter it further to get just the changelist numbers. </p>
  
  <pre><code>p4 changes -m 3 -u edk -s submitted @2009/05/01,@now | cut -d ' ' -f 2
  </code></pre>
  
  <p>E.g. : </p>
  
  <pre><code>422311
  543210
  444000
  </code></pre>
  
  <p>How is it possible to store this list in a bash array?</p>