6
8
Apologies for my ignorance, I'm fairly new to this.
I'm trying to read a log file which is being written to by a simple daemon. What I would like to do is filter my "live" output to certain - multiple - "types".
My types are: DEBUG|INFO|WARN|ERROR|FATAL
This is what I have so far, and it works for 1 case, I cannot get it working for multiple cases though.
tail -f log.txt | grep INFO
I've tried a couple things to try and say I want "WARN
's & ERROR
's" but nothing is really working for me. How would I correct this?
Thanks
2+1
grep -E
also works. – quack quixote – 2009-10-23T15:23:44.160