хвостовой грип

tail -f file | grep --line-buffered my_pattern
Confused Caracal