Awk script to analyze ps command output

I have never worked in programming languages ​​before. I study the architecture of C and unix, citing online links. I got a little exercise to write an awk script to analyze the output of the ps command. please help and please provide me the names of the best books for C and awk scripts.

+7
awk
source share
1 answer

Suppose you want to list only the command column (8th column) from the output of ps -ef , you can do:

 ps -ef | awk '{print $8}' 
+12
source share

All Articles