title: Using awk to find and replace string in files found with find
body: <p>I'm using find to grab a bunch of files in a directory, and then awk to try and find/replace a string in them.  However, awk is just printing the entire contents of the files to stdout instead of overwriting the files.  I'm a bit confused as to what syntax I should use here to accomplish my goal.</p>
  
  <p>My command so far is:</p>
  
  <pre><code>find -iname '*_input.xml' -exec awk -P '/"prop_name" : "ID",/ , /}/ {print sub(/SKU/,"SKU+ProductId")} 1' {} +
  </code></pre>
  
  <p>THis is replacing the string <code>SKU</code> with <code>SKU+ProductId</code> but not overwriting the file.</p>
  
  <p>Any one have any ideas as to what Im missing?</p>
  
  <p>Cheers!</p>
  
  <p><strong>Update:</strong>
  Example Content:</p>
  
  <pre><code>          },
        "prop_name" : "ID",
        "rule" : "SKU"
     },
  </code></pre>