title: BASH: append data to a location other than end of a file
body: <p>I have a "|" delimited text file. I need to combine 2 fields and then insert this into an xml file given by another field ($5) in the same record.</p>
  
  <p><code>awk -F "|" '{print $2$4 &gt;&gt; $5 }'  source.txt</code></p>
  
  <p>does this great but it just appends the data to the end of the files. I need it to replace the contents of <code>&lt;element&gt; blablabla &lt;/element&gt;</code>
  which is located in each of the xml's.</p>
  
  <p>Thanks in advance</p>