![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| zip utility on HP-UX | jgutierrez29 | UNIX for Dummies Questions & Answers | 1 | 06-22-2005 04:10 PM |
| AWK utility | malaymaru | UNIX for Dummies Questions & Answers | 3 | 05-05-2005 02:27 AM |
| Sed utility | malaymaru | UNIX for Dummies Questions & Answers | 4 | 05-04-2005 04:37 AM |
| BRU utility | sherbet808 | UNIX Desktop for Dummies Questions & Answers | 7 | 06-20-2003 11:22 AM |
| sar utility | srinivasp | UNIX for Advanced & Expert Users | 2 | 11-15-2002 11:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
This sounds like a homework question to me
![]() So I will give a general answer in that awk is mainly used to search input, whether it be from a file or command run at the command line, for a specific pattern or patterns and then perform an action on that pattern. For example, if you wanted to regularly kill a process in a script, but are not sure the PID of that process at any one moment in time, awk is good to search for that pattern and send the PID to the kill command thus: kill -9 `ps -ef | grep $process | grep -v grep | awk '{print $1}'` This is a very simply application of a relatively powerful and flexible language. Search on the web for more on specific examples relating to awk. Regards. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|