Jul 9, 2018

Linux - Tail -f + grep

tail -F <fileName> | grep --line-buffered  <pattern> -A 3 -B 5
grep -C 3 <pattern>, replaces -A <N> and -B <N> if N is same.