how to apply live grep to log code example Example: grep tail tail -f file | grep --line-buffered my_pattern