Skip to content

Instantly share code, notes, and snippets.

@Vaduz
Created December 9, 2013 05:40
Show Gist options
  • Save Vaduz/7867773 to your computer and use it in GitHub Desktop.
Save Vaduz/7867773 to your computer and use it in GitHub Desktop.
remove control char
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