finding an email address inside an mbox file

Assuming the mbox has been saved into a file called thefile.txt:

grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" thefile.txt

Popular posts from this blog

Enable Anydesk on Linux

Boot MacOS under VirtualBox

DMARC, SPF, DKIM for sendmail on linux