title: How to add new line in file in bash?
body: <p>my input file contains</p>
  
  <pre><code>&lt;arg&gt;arg1&lt;/arg&gt;
  &lt;arg&gt;arg2&lt;/arg&gt;
  &lt;arg&gt;arg3&lt;/arg&gt;
  &lt;arg&gt;arg4&lt;/arg&gt;
  </code></pre>
  
  <p>now i want to add new line <code>&lt;arg&gt;arg5&lt;/arg&gt;</code>.
  I used below command
  <code>awk '{gsub("&lt;arg&gt;arg4&lt;/arg&gt;", "&lt;arg&gt;arg4&lt;/arg&gt;\n&lt;arg&gt;arg5&lt;/arg&gt;", $0); print}' inputfile &gt; tempfile</code></p>
  
  <p>But its not working at all. Its also not giving any errors.
  Please help me out here.</p>