title: Bash - remove all lines beginning with 'P'
body: <p>I have a text file that's about 300KB in size. I want to remove all lines from this file that begin with the letter "P". This is what I've been using:</p>
  
  <pre><code>&gt; cat file.txt | egrep -v P*
  </code></pre>
  
  <p>That isn't outputting to console. I can use cat on the file without another other commands and it prints out fine. My final intention being to:</p>
  
  <pre><code>&gt; cat file.txt | egrep -v P* &gt; new.txt
  </code></pre>
  
  <p>No error appears, it just doesn't print anything out and if I run the 2nd command, new.txt is empty.
  I should say I'm running Windows 7 with Cygwin installed.</p>