In: Computer Science
**Need to use awk command in putty (should be a ONE LINE COMMAND)
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 :
using a good awk command the output would be something like this
email = From: "Linder, Jann/WDC" <[email protected]>
email = To: Mr Arlington Hewes <[email protected]>
email = > From: Mr Arlington Hewes
[SMTP:[email protected]]
email = > To: [email protected]
….etc...
---
the perfect output, but removing the duplicates( accomplished by using | uniq) would be even better:
email = [email protected]
email = [email protected]
email = [email protected]
email = [email protected]
email = [email protected]
email = [email protected]
email = [email protected]
…… etc ...
Note: I have provided two commands, you can use anyone according to your requirement.
Code to copy:
Output: