Question: Linux grep/egrep command problem So I have a very big database, the question is to find out the incorrect format e-mail address. Please help me,

Linux grep/egrep command problem

So I have a very big database, the question is to find out the incorrect format e-mail address. Please help me, thank you!

1:How many records have incorrect email addresses (lines with an @ in it but formatted incorrectly)? An email address has a user-id and domain names can consist of letters, numbers, periods, and dashes. An email address should have a top-level-domain (something.top-leveldomain). Top-level-domains are of the form: com, org, edu etc.,

I know how to find the email address: grep -E "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" HW1_Data.txt;

But if I use grep -E -v "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" HW1_Data.txt, I will ust got everything but email..so I just don't know how to do

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!