LoginSignup
116

More than 3 years have passed since last update.

リアルタイムに「tail -f」をgrepする方法

Last updated at Posted at 2015-02-26

普通に

tail -f XXXXX | grep "XXXX"

とするとgrepがバッファリングしてしまうため、リアルタイムにgrepされない。

tail -f XXXXX | grep --line-buffered "XXXX"

としてgrepのバッファリングを解除する必要がある。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
116