I have list of employees in following format
Name:
Phone No:
Email:
Name:
Address:
Phone No:
Email:
Name:
Country:
Address:
Phone No:
Email:
Name:
Address:
Name :
Email:
Address:
All I want is that to get only Name and Email address.
I tried something like cat filename | grep -e ^Name: -e ^Email:
but was not 100% successfull.
cat | grep
) – Archemar Mar 22 '16 at 15:12