- 论坛徽章:
- 0
|
awk NF 3是什么意思?
An AWK program consists of a sequence of pattern-action statements and optional
function definitions.
pattern { action statements }
function name(parameter list) { statements }
Patterns
AWK patterns may be one of the following:
- BEGIN
- END
- /regular expression/
- relational expression
- pattern && pattern
- pattern || pattern
- pattern ? pattern : pattern
- (pattern)
- ! pattern
- pattern1, pattern2
复制代码
Actions
Action statements are enclosed in braces, { and }. Action statements consist of
the usual assignment, conditional, and looping statements found in most languages.
The operators, control statements, and input/output statements available are pat-
terned after those in C.
截取于 man awk , 和大家共勉 |
|