title: What is the difference between p and P in sed?
body: <p>Can anyone explain what is the difference between <code>p</code> and <code>P</code> in Sed?</p>
  
  <p>Suppose I want to print lines containing gmail in the below file using both <code>p</code> and <code>P</code> give the same output:</p>
  
  <pre class="lang-none prettyprint-override"><code>$ cat abc.txt 
  Gmail 10
  Yahoo 20
  Rediff 18
  
  $ sed -n /Gmail/p abc.txt
  Gmail 10 
  
  $ sed -n /Gmail/P abc.txt
  Gmail 10 
  </code></pre>
  
  <p>What is the difference between <code>p</code> and <code>P</code>?</p>