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.
+1
A:
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}'
codaddict
2010-09-05 16:56:22
Really thank you ,also which books should i refer .
Nilesh
2010-09-05 16:59:39
You'll get plenty of resource online like http://www.gnu.org/manual/gawk/gawk.html Also you can refer to the awk questions on stackoverflow here.
codaddict
2010-09-05 17:05:02