title: Remove ANSI color codes from a text file using bash
body: <p>I have a bash script that runs and outputs to a text file however the colour codes it uses are also included what i'd like to know is how to remove them from the file, ie</p>
  
  <pre><code>^[[38;1;32mHello^[[39m
  ^[[38;1;31mUser^[[39m
  </code></pre>
  
  <p>so I just want to be left with Hello and User</p>