title: xargs: how to have literal double-quotes in replacement?
body: <p>I have a source file with JSON-Objects one per line like this:</p>
  
  <p>source:</p>
  
  <pre><code>{"_id":"1","name":"one"}
  {"_id":"2","name":"two"}
  {"_id":"3","name":"three"}
  </code></pre>
  
  <p>I want to send each line to a</p>
  
  <pre><code>curl -X POST -H "application/json" myURL -d '&lt;REPLACEMENT&gt;'
  </code></pre>
  
  <p>The double quotes do not make it to curl when I am trying</p>
  
  <pre><code>&lt;source xargs -I % curl -X POST -H "application/json" myURL -d '%'
  </code></pre>
  
  <p>I tried escaping the quotes in the curl command and later I replaced all double-quotes in the source file with \". I found no version to work.</p>
  
  <p>Another approach to use seq with sed to write each line into a temp file and curl -d @temp did not work out for me.</p>
  
  <p>Is there an elegant solution or do I have to write a script with a loop?</p>