title: AWK: execute CURL on each line and parse result
body: <p>given an input stream with following lines:</p>
  
  <pre><code>123
  456
  789
  098
  ...
  </code></pre>
  
  <p>I would like to call</p>
  
  <pre><code>curl -s http://foo.bar/some.php?id=xxx
  </code></pre>
  
  <p>with xxx being the number for each line, and everytime let an awk script fetch some information from the curl output which is written to the output stream. I am wondering if this is possible without using the awk "system()" call in following way:</p>
  
  <pre><code>cat lines | grep "^[0-9]*$" | awk '
      {
          system("curl -s " $0 \
          " | awk \'{ #parsing; print }\'")
      }'
  </code></pre>