Hall H.

asked • 02/04/21

Linux assignment lab 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, you are just searching for the lines that contain the word “selected”. Your awk script will look into the file called longfile and once it finds all the lines that contain the word "selected" it will display the line. The output should be:


output: (There should be only one line)

server, or at least to a "randomly" selected one of the servers covering


YOUR AWK COMMAND:

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.