title: Powershell how to add new line after certain string
body: <p>I am very new to scripting. I am trying to solve one problem and I was looking at windows batch and powershell. I have found this but I dont know, why it is not working:</p>
  
  <p>I have input.txt file with this content:</p>
  
  <pre><code>&lt;a&gt; TEXT &lt;/a&gt;
  &lt;c&gt; text asdrtlj &lt;/c&gt;
  &lt;a&gt; another text &lt;/a&gt;
  </code></pre>
  
  <p>I want to add new line before every <code>&lt;a&gt;</code>, so I tried this:</p>
  
  <pre><code>powershell -Command "(gc input.txt) -replace '&lt;a&gt;', '`r`n&lt;a&gt;' | Out-File output.txt"
  </code></pre>
  
  <p>That adding of newline doesnt work. Can you help me please?</p>
  
  <p>PS: I've found a lot of complicated codes while searching the solution and I haven't understood them yet so if you recommend me some good tutorials where to start with this languages I will appreciate it. </p>