I have one file in which i have one variable where i am storing email ids.
I have several users with different email ids.
I want to extract the following,
for e.g the email id is email@example.com
my purpose is to search users with abc.def.com or extract the abc.def.com part from the email id.
Please help me how can i write the shell script to perform this operation.