Suppose you are given a file where each row is the name of a process, followed by its PID, followed by its CPU usage. e.g. xeyes 1235 75 firefox 563 10 xeyes 762 20 xeyes 2020 10 zathura 656 10 Write an AWK script that will print only the PIDS of processes called xeyes Also, it should at the end print the total CPU usage of all the xeyes processes Show transcribed image text Suppose you are given a file where each row is the name of a process, followed by its PID, followed by its CPU usage. e.g. xeyes 1235 75 firefox 563 10 xeyes 762 20 xeyes 2020 10 zathura 656 10 Write an AWK script that will print only the PIDS of processes called xeyes Also, it should at the end print the total CPU usage of all the xeyes processes
Expert Answer
Answer to Suppose you are given a file where each row is the name of a process, followed by its PID, followed by its CPU usage. e….