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

jQuery Mobile app not scrolling in Firefox -

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

php array slice every 2th rule -