Question: Using awk, write the command that would print the line that contains the word selected. This file has a lot of junk in it, so
Using awk, write the command that would print the line that contains the word "selected". This file has a lot of junk in it, so you are just searching for the lines that contain the word selected (there will be only one). Your awk script will look word "selected" it will display the line output that should be: into the file called longfile and once it finds all the lines that contain the output: (There should be only one line) server, or at least to a "randomly" selected one of the servers cvering YOUR AWK COMMAND (10 points hard one) 2) 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 emaile 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: Ce:, usually after these characters, there could be a good, valid e-mail address
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
