Skip to content

Instantly share code, notes, and snippets.

@ansig
Last active May 8, 2018 06:04
Show Gist options
  • Save ansig/b94ca0fc4c3d335a631f1c319a6bedd2 to your computer and use it in GitHub Desktop.
Save ansig/b94ca0fc4c3d335a631f1c319a6bedd2 to your computer and use it in GitHub Desktop.
Clean Jenkins logs extended by AnsiColor plugin
#!/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