-
-
Save itsreallynick/803052b8ed68001207ec to your computer and use it in GitHub Desktop.
Adding color to Bro logs (or other TSV logs)
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 | |
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