How grep with -e (regex) /log/messages
? [ solved ]
How grep with -e (regex) /log/messages
? [ solved ]
Hi,
I would like to display the new lines of /var/log/messages
that contain either IN_MyText
or OUT_MyText
(no matter where in the line)
I've tried
tail -fn 3 /var/log/messages | grep --color --line-buffered -e "(IN|OUT)_MyText"
But the output stay blank, when it should not...
Any ideas ?
You're viewing a single thread.
All comments
5
comments
Do you get output if you use that exact
tail
command without thegrep
pipe?2 0 ReplyYes
1 0 Reply