Question: Write a shell script that prints the list of people who are active on the host. A person is active if their idle time is
Write a shell script that prints the list of people who are active on the host. A person is active if their idle time is less than one minute. Hint: "w" prints a list of everyone logged on and their idle time. "cut" can remove unneeded parts of a line You can read a file into a script one line at a time like this ... cat filename | while read a b c do echo $a $b $c done
LINUX UBUNTU
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
