开发者

awk script to parse output of ps command

开发者 https://www.devze.com 2023-01-15 02:23 出处:网络
I have never worked on programming languages before. I am learning C and unix architecture by refering online links.

I have never worked on programming languages before. I am learning C and unix architecture by refering online links. I got small exercise to write awk script to parse output of ps command. please help and please provide me the names of best books for C & awk scripting开发者_高级运维.


Lets say you want to list just the command column(8th column) from the ps -ef output, you can do:

ps -ef | awk '{print $8}'
0

精彩评论

暂无评论...
验证码 换一张
取 消