Advanced Exercises


Use awk to build a program that displays a process list as a tree, showing each process indented under its parent process. (Hint: You may want to use a recursive function in your solution.)


Write an shell script named listproc that uses awk and displays the PID numbers of processes whose names match the argument given to the script.

A Practical Guide to UNIX[r] for Mac OS[r] X Users
A Practical Guide to UNIX for Mac OS X Users
ISBN: 0131863339
EAN: 2147483647
Year: 2005
Pages: 234

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: