title: Parse all column elements from a linux bash command output
body: <p>I would like to parse the column elements of the output from the command lsscsi.</p>
  
  <p>Here is a sample output,</p>
  
  <pre><code># lsscsi
  
  [0:0:0:0]   disk   ATA   VBOX HARDDISK   1.0   /dev/sda
  [0:0:1:0]   disk   ATA   VBOX HARDDISK   1.0   /dev/sdb
  [1:0:1:0]   disk   ATA   VBOX HARDDISK   1.0   /dev/sdc
  </code></pre>
  
  <p>Example if I want column 2, my output should be,</p>
  
  <pre><code>disk
  disk
  disk
  </code></pre>
  
  <p>If cloumn 7,</p>
  
  <pre><code>/dev/sda
  /dev/sdb
  /dev/sdc
  </code></pre>
  
  <p>Thanks</p>