Skip to content

Instantly share code, notes, and snippets.

@mapkyca
Created June 11, 2012 09:15
Show Gist options
  • Save mapkyca/2909223 to your computer and use it in GitHub Desktop.
Save mapkyca/2909223 to your computer and use it in GitHub Desktop.
Strip ANSI escape codes from text strings
sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment