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

Pause a program which is using too much CPU

Enable Anydesk on Linux

throttle traffic on apache