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

arrays - PHP Shopping Cart Variable and Object errors -

javascript - jQuery "chosen": conflict with 'selected' attribute in option tag -