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

c++ - How to add Crypto++ library to Qt project -

c++ - Serialize a class with a Qlist of custom classes as member (using QDataStream) -

Read video using VideoReader function in Matlab? -