Question 1
Write a SED script to print the domain names of email from the standard input.
Note: Domain name in an email address is anything which comes after @. e.g. in [email protected] the @somemail.com is the domain name.
Sample input
Mehta,1-322-248-9102,[email protected],Daman and Diu
Malik,1-335-746-5592,[email protected],Andhra Pradesh
Suri,1-134-516-1754,[email protected],Lakshadweep
Persaud,268-1152,[email protected],Dadra and Nagar Haveli
Joshi,1-869-326-6582,[email protected],OR
Subram,1-172-433-4318,[email protected],MH
Sehgal,647-1701,[email protected],DD
Sample output
yahoo.net
hotmail.com
protonmail.org
aol.co.uk
hotmail.com
hotmail.edu
outlook.co.uk