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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -