title: Powershell -how to remove line details from selectstring output
body: <p>I want to select a string "install status" from a log file by using powershell. For that i have used the command $status=selectstring -path $path -pattern "installstatus" .This cmd given an output installstatus=success with path and logtime and line details at beginning and i removed the path by adding |{$_.Line} after pattern in $status.And i want to remove line details also.how can i remove those details.I only want the pattern to be displayed .Any help will be apperciated.Thanks in advancd.</p>
  
  <p>here the scenarios  </p>
  
  <pre><code>$path="C:\Users\sumith\filename.log";
  $status=select-string -path $path -pattern "Install_status"
  </code></pre>
  
  <p>output is </p>
  
  <pre><code>C:\Users\sumith\filename.log:79:ISS_LOG [14:45:41]: INSTALL_STATUS:SUCCESS
  </code></pre>
  
  <p>if i give </p>
  
  <pre><code>$status=select-string -path $path -pattern "Install_status" | {$_.Line}
  </code></pre>
  
  <p>the output will be </p>
  
  <pre><code>ISS_LOG [14:45:41]: INSTALL_STATUS:SUCCESS
  </code></pre>
  
  <p>now i want to remove <code>ISS_LOG [14:45:41]:</code> from output </p>