Question: Write the command that would find all lines that have an email address and place a label email = before the line in the file
Write the command that would find all lines that have an email address and place a label email = before the line in the file longfile
output will multiple lines similar to this one :
email= Message-Id: 199801232015.MAA21444@mail-gw2.pacbell.net
NOTE: this will be a long listing. The line above would not be a good example since 199801232015.MAA21444@mail-gw2.pacbell.netwould not be a valid email address. You would be searching for lines with the words from: to: Cc:, usually after these characters, there could be a good, valid e-mail address.
I need to use an awk command and on Putty (Unix/Linux)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
