title: How to parse a command output in shell script
body: <p>Can anyone please suggest me that how can I parse the below command output and store particular value in a variable.</p>
  
  <p><strong>sestatus</strong></p>
  
  <p>This is the output of that command</p>
  
  <pre><code>SELinux status:                 enabled  
  SELinuxfs mount:                /selinux  
  Current mode:                   enforcing  
  Mode from config file:          enforcing  
  Policy version:                 24  
  Policy from config file:        targeted
  </code></pre>
  
  <p>Here I want to store <strong>"enforcing"</strong> of Current mode: in a variable.</p>
  
  <p>Can anyone please suggest me.</p>
  
  <p>Thanks In Advance.</p>