top | item 42279270

(no title)

Dan42 | 1 year ago

grep has a --line-buffered option that does the job fine in most cases. Just set in your aliases grep='grep --line-buffered', that way you get the correct behavior when you tail logs piped to a sequence of greps, and you avoid the performance penalty in scripts.

discuss

order

No comments yet.