Last active
May 8, 2018 06:04
-
-
Save ansig/b94ca0fc4c3d335a631f1c319a6bedd2 to your computer and use it in GitHub Desktop.
Clean Jenkins logs extended by AnsiColor plugin
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
#!/usr/bin/env bash | |
cat -vet log | sed -r 's/\^\[\[8m[a-z\:\/0-9A-Z\+]+={1,2}?\^\[\[0m//g' | sed 's/\$$//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment