title: Find the word after the pattern using Awk
body: <p>I have executed the below command and i have stored the data in sample.txt file.</p>
  
  <pre><code>chkconfig --list | grep postfix &gt; sample.txt
  </code></pre>
  
  <p>Now this file contains the below output :</p>
  
  <pre><code>postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
  </code></pre>
  
  <p>Now I need to extract the string after <code>2:</code>. The output should be <code>on</code></p>
  
  <p>Is the anyway we can find it using <code>awk</code> or <code>grep</code>?</p>