Retrieve email address from text using grep

grep -Eoh ‘[A-Za-z0-9\-\.\_]+@[A-Za-z0-9\-\_]+\.[A-Za-z0-9\-\.\_]+’ filename

Leave a Reply

Your email address will not be published. Required fields are marked *