Skip to content

Instantly share code, notes, and snippets.

@mbaldessari
Created January 13, 2021 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbaldessari/b7af194582d6581f38c0b0e65b5b2c73 to your computer and use it in GitHub Desktop.
Save mbaldessari/b7af194582d6581f38c0b0e65b5b2c73 to your computer and use it in GitHub Desktop.
ospgrep() {
echo "$*"
grep -E "\s\b(E[rR]{2}:?|alert|Traceback|TRACE|crit|fatal|HANDLER|TASK|PLAY|Unexpected|FAIL|[Ff]ail|denied|non-zero|[Tt]ime[d\s]?out|UNCAUGHT|EXCEPTION|Unknown|[Aa]ssertion|inuse)" $*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment