So I have a long list of email and I want to search these based on just a few sections of the email string.
I want to try and search these emails more efficently so I want to match the start of the email. Is there a simple way to match the first character/first few characters, the @ and the following character and end of the email.
Here's an example search:
cal****@a**m
So then if I used a search on the following list it would only pull the top 2
callum@aol.com
callumsmith@aol.com
callumfrrg@test.com
someemail@test.com
grep -x
would get rid of the need for explicit anchors. – Kusalananda Jan 28 '19 at 10:03