title: Looking for a search string in a file and printing next word in the same line
body: <p>For example, consider a file "abc.txt" has following content:    </p>
  
  <pre><code>#--------------- Module Id ---------------
  MODULE_ID='ACXX'
  MODULE_ID='BCXX'
  MODULE_ID='CCXX'
  </code></pre>
  
  <p>Now, I want to search "MODULE_ID" keyword in that file and if found it should print value in that quotes i.e. <code>"1"</code>.<br>
  Can I know how to do that in Linux?</p>
  
  <p>I tried with following but couldn't succeed:</p>
  
  <pre><code>grep -o 'MODULE_ID='[^']*'' uk.spec &gt; results.txt
  
  grep -Po 'MODULE_ID="\K.*?(?=")' uk.spec 
  
  perl -ne 'if(m/MODULE_ID="(.*?)"/){ print $1 . "\n"; }'
  </code></pre>