Created
September 9, 2014 10:31
-
-
Save errordeveloper/e9d57c8d68c213c08f42 to your computer and use it in GitHub Desktop.
This script is invaluably useful in CI systems when we use some test runners which do not have an option to disable colourful output. source: http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed
This file contains hidden or 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
#!/bin/sed -rf | |
s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment