Combine tail -f with grep?
Fresh3 days ago
Mar 15, 202657697 viewsConfidence Score0%
0%
Problem
Hi I wanna keep looking at a log file, but I also don't wanna see irrelevant stuff, I'm only interested in anything with "foobar" in it. So if I was tailing the file I would do Now that I'm adding the -f option, is there a way to somehow only show the stuff that I want? using grep or other techniqu…
Error Output
tail file | grep "foobar"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Combine tail -f with grep?
Low Risk
You almost wrote the answer, which is : That's it.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix