Hall H.

asked • 02/04/21

Linux lab questions

3)      Write the awk command that would show the user (or yourself) that is online (you have to use a pipe)


Output, depending on the system, would be similar to:

user pts/37  10.32.9.93      13:58   1.00s 0.15s 0.10s w

YOUR AWK COMMAND:


(10 points hard one) -

4)      finger or who the users on our system that have the letter r in their first name, or last name, but nowhere else. Note also that the r can be r or R. Note that your output will be a bit different



note: the letter r or R has to appear either in their first name or last name only, not on the name of the machine that they are using if it happen to have r in it.


YOUR AWK COMMAND:


5)      (3 points - easy)

from the file called winelist extract a list of wines that cost less than $7.00


output (it may be different depending the time you do it):

1977   6.99   Franciscan

1977   6.75   Alexander Valley

1977   5.99   Charles Krug


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.