I have a text file in which thousands of data is there. eg.
id=row_value
profile=row_value
name=row_value
email=row_value
address=row_value
id=row_value2
profile=row_value2
name=row_value2
email=row_value2
address=row_value2
. . .
. . .
. . .
I want to Extract all name
and email
from that file. eg.
name=row_value
email=row_value
name=row_value2
email=row_value2
. . .
. . .
. . .
NOTE : Note the new line after each name
and email
pairs ..
I Know it will be done in some linux commands like grep
, sed
, awk
etc ..
I'm Noob in linux commands and please help me regarding this ..