Оператор OR для grep

Для grep, оператор OR — \| Вот пример с использованием tail, мы будем искать в логе /var/log/httpd/error.log

tail -f /var/log/httpd/error.log | grep «PHP Notice\|client denied»

Leave a Reply

Ваш адрес email не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>