Skip to content

Instantly share code, notes, and snippets.

@obfusk
Last active October 23, 2020 19:57
Show Gist options
  • Select an option

  • Save obfusk/d4cdbc67b8b1ee8f09688ba7dd72d968 to your computer and use it in GitHub Desktop.

Select an option

Save obfusk/d4cdbc67b8b1ee8f09688ba7dd72d968 to your computer and use it in GitHub Desktop.
strip ansi escape (e.g. colour) codes
#!/bin/bash
sed -r 's/\x1b\[[;?0-9]*[a-zA-Z]//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment