title: How to insert line breaks on existing text file?
body: <p>I have an existing text file that is one long string. I would like to create a .bat script to insert a carriage return and line-feed after it finds <code>~</code>.</p>
  
  <p>For example, the original text file is:</p>
  
  <pre><code>This is a long string~which should be many lines~and yet it is not
  </code></pre>
  
  <p>The wanted output is:</p>
  
  <pre><code>This is a long string~
  which should be many lines~
  and yet it is not
  </code></pre>