title: Powershell. Writing out lines based on string within the file
body: <p>I'm looking for a way to export all lines from within a text file where part of the line matches a certain string. The string is actually the first 4 bytes of the file and I'd like to keep the command to only checking those bytes; not the entire row. I want to write the entire row. How would I go about this?</p>
  
  <p>I am using Windows only and don't have the option to use many other tools that might do this.</p>
  
  <p>Thanks in advance for any help.</p>