Created
June 11, 2012 09:15
-
-
Save mapkyca/2909223 to your computer and use it in GitHub Desktop.
Strip ANSI escape codes from text strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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