tail -fコマンドの結果をgrepする

tail -fコマンドの結果をgrepしたい場合、grepのオプションに --line-bufferedをつけると良い。

# 例
tail -f ~/application.log | grep --line-buffered "ERROR"