Created
December 10, 2014 10:15
-
-
Save tadas-s/f5eb0c139219a103cad3 to your computer and use it in GitHub Desktop.
nocol
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
#!/bin/bash | |
# Strips colors/escape sequences from output | |
# | |
# Usage: annoying-color-producing-tool | nocol | |
sed -r "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