|
It has to be adjusted to fit the ps command on whatever unix system you are on. Basically it is: "If the process is called netscape and it is not called 'grep netscape' (or awk) then print the pid" ... awk syntax is not the same in every Unix system, but there is a way to learning how is it in our particular system: man awk...
|
|
|
This qref is written for a semi-knowledgable UNIX user who has just come up against a problem and has been advised to use awk to solve it. Perhaps one of the examples can be quickly modified for immediate use.
|
|
|
The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting ... Split a file with no pattern -- Split, Csplit, Awk madhunk UNIX for Dummies Questions & Answers 10 12-17-2007 11:57 AM...
|
|
|
More UNIX and Linux Forum Topics You Might Find Helpful ... Can any intelligent awk'ers suggest a better method of using logicals in the above command. Thanks in advance.
|
|
|
A useful reference guide to awk ... This is not a tutorial or full description of awk - it is a quick reference to the most commonly used built in functions and variables. We have ignored some less-used routines, such as the mathematical functions. ... NOTICE - New forum for all UNIX learners, users and programmers - click here...
|
|
|
For those who have written programs before and have used Unix from the command line ... Some useful shell and Unix commands ... Unix accessories...
|
|
|
awk is a pattern-matching program for processing files, especially when they are databases. The new version of awk, called nawk, provides additional capabilities.[1] Every modern Unix system comes with a version of new awk, and its use is recommended over old awk.
|
Copyright © 2009, Dictionary.com, LLC. All rights reserved.