title: Cut the output of a command
body: <p>I have the following output of the command "xm list":</p>
  
  <pre><code>Name                                        ID   Mem VCPUs      State   Time(s)
  Domain-0                                     0   505     4     r-----  11967.2
  test1                                       28  1024     1     -b----    137.9
  test2                                       33  1024     1     -b----      3.2
  </code></pre>
  
  <p>I execute a shellscript with: ./myscript test2
  In this script, I need the ID of test2 (shown at the command "xm list" (ID33))
  I tried it with grep and cut like this:</p>
  
  <pre><code>xm list | grep $1 | cut ???
  </code></pre>
  
  <p>How does this work?</p>