Wednesday, August 29, 2012

"tail -f" with highlight


tail maillog -f | grep -E ": 550|: 554" | perl -p -e "s/(550|554)/\e[1;46;1m$&\e[0m/g;"


0all attributes off
1bold
32foreground green
40background black
Colors
This vector holds the colors used for SGR control sequences parameters 30 to 37 \(foreground colors) and 40 to 47 (background colors).
ParameterColor
3040black
3141red
3242green
3343yellow
3444blue
3545magenta
3646cyan
3747white

No comments:

Post a Comment