egrep执行效果与"grep-E"相似,egrep是用extended regular expression语法来解读的,而grep则用basic regular expression 语法解读,extended regular expression比basic regular expression的表达更规范。

find /webapp01/nginxlog/ -mmin -5 | xargs egrep -i '(cgi|manager|password|passwd|select.*from*|.*union.*|exec|runtime|bash|cmd=)'

find /webapp01/nginxlog/ -mmin -10 | xargs egrep -i '(cgi|manager|password|passwd|select.*from*|.*union.*|exec|runtime|bash|cmd=)'