1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright 1992, X/Open Company Limited All Rights Reserved
4 .\" Portions Copyright (c) 2005, 2006 Sun Microsystems, Inc. All Rights Reserved
5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
6 .\" http://www.opengroup.org/bookstore/.
7 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
8 .\" This notice shall appear on any product containing this material.
9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
11 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
12 .TH NAWK 1 "May 24, 2006"
13 .SH NAME
14 nawk \- pattern scanning and processing language
15 .SH SYNOPSIS
16 .LP
17 .nf
18 \fB/usr/bin/nawk\fR [\fB-F\fR \fIERE\fR] [\fB-v\fR \fIassignment\fR] \fI\&'program'\fR | \fB-f\fR \fIprogfile\fR...
19 [\fIargument\fR]...
20 .fi
21
22 .LP
23 .nf
24 \fB/usr/xpg4/bin/awk\fR [\fB-F\fR \fIERE\fR] [\fB-v\fR \fIassignment\fR]... \fI\&'program'\fR | \fB-f\fR \fIprogfile\fR...
25 [\fIargument\fR]...
26 .fi
27
28 .SH DESCRIPTION
29 .sp
30 .LP
31 The \fB/usr/bin/nawk\fR and \fB/usr/xpg4/bin/awk\fR utilities execute
32 \fIprogram\fRs written in the \fBnawk\fR programming language, which is
33 specialized for textual data manipulation. A \fBnawk\fR \fIprogram\fR is a
34 sequence of patterns and corresponding actions. The string specifying
35 \fIprogram\fR must be enclosed in single quotes (') to protect it from
36 interpretation by the shell. The sequence of pattern - action statements can be
37 specified in the command line as \fIprogram\fR or in one, or more, file(s)
38 specified by the \fB-f\fR\fIprogfile\fR option. When input is read that matches
39 a pattern, the action associated with the pattern is performed.
40 .sp
41 .LP
42 Input is interpreted as a sequence of records. By default, a record is a line,
43 but this can be changed by using the \fBRS\fR built-in variable. Each record of
44 input is matched to each pattern in the \fIprogram\fR. For each pattern
45 matched, the associated action is executed.
46 .sp
47 .LP
48 The \fBnawk\fR utility interprets each input record as a sequence of fields
49 where, by default, a field is a string of non-blank characters. This default
50 white-space field delimiter (blanks and/or tabs) can be changed by using the
51 \fBFS\fR built-in variable or the \fB-F\fR\fIERE\fR option. The \fBnawk\fR
|
1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright 1992, X/Open Company Limited All Rights Reserved
4 .\" Portions Copyright (c) 2005, 2006 Sun Microsystems, Inc. All Rights Reserved
5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
6 .\" http://www.opengroup.org/bookstore/.
7 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
8 .\" This notice shall appear on any product containing this material.
9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
11 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
12 .TH NAWK 1 "May 24, 2006"
13 .SH NAME
14 nawk \- pattern scanning and processing language
15 .SH SYNOPSIS
16 .LP
17 .nf
18 \fB/usr/xpg4/bin/awk\fR [\fB-F\fR \fIERE\fR] [\fB-v\fR \fIassignment\fR]... \fI\&'program'\fR | \fB-f\fR \fIprogfile\fR...
19 [\fIargument\fR]...
20 .fi
21
22 .SH DESCRIPTION
23 .sp
24 .LP
25 The \fB/usr/xpg4/bin/awk\fR utility executes
26 \fIprogram\fRs written in the \fBnawk\fR programming language, which is
27 specialized for textual data manipulation. A \fBnawk\fR \fIprogram\fR is a
28 sequence of patterns and corresponding actions. The string specifying
29 \fIprogram\fR must be enclosed in single quotes (') to protect it from
30 interpretation by the shell. The sequence of pattern - action statements can be
31 specified in the command line as \fIprogram\fR or in one, or more, file(s)
32 specified by the \fB-f\fR\fIprogfile\fR option. When input is read that matches
33 a pattern, the action associated with the pattern is performed.
34 .sp
35 .LP
36 Input is interpreted as a sequence of records. By default, a record is a line,
37 but this can be changed by using the \fBRS\fR built-in variable. Each record of
38 input is matched to each pattern in the \fIprogram\fR. For each pattern
39 matched, the associated action is executed.
40 .sp
41 .LP
42 The \fBnawk\fR utility interprets each input record as a sequence of fields
43 where, by default, a field is a string of non-blank characters. This default
44 white-space field delimiter (blanks and/or tabs) can be changed by using the
45 \fBFS\fR built-in variable or the \fB-F\fR\fIERE\fR option. The \fBnawk\fR
|