title: awk system not setting variables properly
body: <p>I am having a issue in having the output of the grep (used in system() in nawk ) assigned to a variable . </p>
  
  <pre><code>nawk '{
  CITIZEN_COUNTRY_NAME = "INDIA"
  CITIZENSHIP_CODE=system("grep "CITIZEN_COUNTRY_NAME " /tmp/OFAC/country_codes.config   | cut -d @ -f1")
   }'/tmp/*****
  </code></pre>
  
  <p>The value IND is displayed in the console but when i give a printf the value of citizenshipcode is 0 - Can you pls help me here</p>
  
  <p>printf("Country Tags|%s|%s\n", CITIZEN_COUNTRY_NAME ,CITIZENSHIP_CODE) </p>
  
  <p>Contents of country_codes.config file</p>
  
  <pre><code>IND@INDIA
  IND@INDIB
  CAN@CANADA
  </code></pre>