linux - Unix command for searching multiple keywords -


need check in error log on unix server multiple sites, ex. lets there 3 sites abc.com, xyz.com , opq.com. want error log server of these sites lies.

i tried

tail -99999  /apache/log/error_log| grep 'abc | xyz | opq' 

but not working..

just use egrep:

tail -99999  /apache/log/error_log| egrep '(abc|xyz|opq)' 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -