Question: Please write in UNIX, even just an example i can use myself. Task 07 (20 points) Write a single regular expression using grep to read

Please write in UNIX, even just an example i can use myself.

Task 07 (20 points)

Write a single regular expression using grep to read the provided data file and return only the valid email addresses.

Input file (lab0207.txt)

Expected output of script

Eat@Joes@asu.edu

bmbaklavah.com

bmgatto@asu.edu

jjsibelius@asu

<>?!@##$%(*&^@example.com

B. M. Gatto@example.com

snehdar@asu.edu

ThisEmailIsWayTooLongToBeValid@asu.edu

lbeethoven@.com

v.v.doom1234@asu.edu

bmgatto@asu.completelymadeupextension

@.

ahitch@@@@@example.com

hfbohannon@asu.

@asu.edu

bmgatto@asu.edu

snehdar@asu.edu

v.v.doom1234@asu.edu

Task EC (Up to 15 points)

Regular expressions are very versatile, theres not many situations where you cant write a RegEx to match the string that you need. Write a string that would be very hard to match with a regular expression. Then, try to match it with a regular expression. Points will be awarded for most creative solutions.

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!