I have a long list of email addresses I need to extract, however I can't find the right way to do it.
The data is is structured similar to this.
Patabee meeta needo firstname.lastname@example.org pizz bees Needo email@example.com hama lines question unix search exchange firstname.lastname@example.org extracts
One thing that is consistent in my data is the email domains.
Currently i have...
grep -oniT @outlook.com /path/to/file/of/emails/and/such.txt
which returns a nice output of..
3624 :@outlook.com 3625 :@outlook.com 3626 :@outlook.com 3630 :@outlook.com 3631 :@outlook.com 3632 :@outlook.com 3633 :@outlook.com 3634 :@outlook.com 3635 :@outlook.com
I need it however to select the whole email address, not just the domain (which is what im currently searching.
How can i make grep select the entire field that it found the matching string, but not the entire line?