Using grep with tail
Published: 09 January 2025
Sometimes I want to tail a file but only print certian things.
$ tail -f /var/log/messages | grep --line-buffered 'important-message'
Published: 09 January 2025
Sometimes I want to tail a file but only print certian things.
$ tail -f /var/log/messages | grep --line-buffered 'important-message'