title: How to select specific string from output in Powershell
body: <p>When I want to choose a specific text from output within powershell I could use </p>
  
  <pre><code>select-string -Pattern "whatever:"
  </code></pre>
  
  <p>And it would print out the whatever column. But when I try the same thing on this output it instead prints out the row instead of the column. </p>
  
  <p>So I do like this:</p>
  
  <pre><code>&gt; /c0 show | select-string -Pattern "EID:Slt"
  </code></pre>
  
  <p>And instead of showing the column it shows this: </p>
  
  <pre><code>&gt; EID:Slt DID State DG Size Intf Med SED PI SeSz Model        
  &gt; Sp
  </code></pre>
  
  <p>The only way I could figure it out was to replace all the characters with empty space but it's kind of messy to do so, anyone else can help with a input?</p>
  
  <p>How I try to make it display the output text: 32:1, 32:2, 32:3, [...]</p>
  
  <pre>
  Controller = 0
  Status = Success
  Description = Show Drive Information Succeeded.
  
  
  Drive Information :
  =================
  
  --------------------------------------------------------------------------
  EID:Slt DID State DG     Size Intf Med SED PI SeSz Model               Sp 
  --------------------------------------------------------------------------
  32:0      0 Onln   0 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:1      1 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:2      2 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:3      3 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:4      4 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:5      5 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:6      6 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  32:7      7 Onln   1 3.637 TB SATA HDD N   N  512B ST4000NM0033-9ZM170 U  
  --------------------------------------------------------------------------
  </pre>