Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Grep by email with an exception from the result, a specific domain (for example mail.ru)?
Good day to all!
The essence of the problem is to select all lines with email addresses from the maillog, but excluding mailboxes from the *@mail.ru domain from the result
grep '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*' ./maillog | grep -v '*@mail\.ru'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question