Daily Shaarli

All links of one day in a single page.

February 18, 2025

Highlight a string in `tail -f` output

Here is how to highlight the string noodles in the output of tail -f using grep:

tail -f /var/log/auth.log | grep --line-buffered --color=always -e "^" -e "noodles"

Figured it out quickly thanks to these posts:

There is also other (possibly better) ways to accomplish the same effect: