Skip to content

Instantly share code, notes, and snippets.

@itsreallynick
Forked from jeffgeiger/brocolor.sh
Last active April 1, 2016 22:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsreallynick/803052b8ed68001207ec to your computer and use it in GitHub Desktop.
Save itsreallynick/803052b8ed68001207ec to your computer and use it in GitHub Desktop.
Adding color to Bro logs (or other TSV logs)
#!/bin/bash
sed 's/^#[a-z]*s[^a-z]//' | awk 'BEGIN {FS="\t"};{for(i=1;i<=NF;i++) printf("\x1b[%sm %s \x1b[0m",(i%7)+31,$i);print ""}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment