=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/awk/awk.1,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/usr.bin/awk/awk.1 2003/09/02 18:50:06 1.14 --- src/usr.bin/awk/awk.1 2003/11/24 10:58:08 1.15 *************** *** 1,4 **** ! .\" $OpenBSD: awk.1,v 1.14 2003/09/02 18:50:06 jmc Exp $ .\" EX/EE is a Bd .\" .\" Copyright (C) Lucent Technologies 1997 --- 1,4 ---- ! .\" $OpenBSD: awk.1,v 1.15 2003/11/24 10:58:08 jmc Exp $ .\" EX/EE is a Bd .\" .\" Copyright (C) Lucent Technologies 1997 *************** *** 132,138 **** .Pp An action is a sequence of statements. A statement can be one of the following: - .Pp .Bd -unfilled -offset indent .Ic if ( Xo .Ar expression ) statement \& --- 132,137 ---- *************** *** 252,258 **** .Fn atan2 are built in. Other built-in functions: - .Pp .Bl -tag -width Fn .It Fn length the length of its argument --- 251,256 ---- *************** *** 406,412 **** A pattern may consist of two patterns separated by a comma; in this case, the action is performed for all lines from an occurrence of the first pattern ! though an occurrence of the second. .Pp A relational expression is one of the following: .Bd -unfilled -offset indent --- 404,410 ---- A pattern may consist of two patterns separated by a comma; in this case, the action is performed for all lines from an occurrence of the first pattern ! through an occurrence of the second. .Pp A relational expression is one of the following: .Bd -unfilled -offset indent *************** *** 418,423 **** --- 416,422 ---- .Ar \& array-name .Xc .Ed + .Pp where a .Ar relop is any of the six relational operators in C, and a *************** *** 499,511 **** .Pp .Dl { print $2, $1 } Print first two fields in opposite order. - .Pp .Bd -literal -offset indent BEGIN { FS = ",[ \et]*|[ \et]+" } { print $2, $1 } .Ed Same, with input fields separated by comma and/or blanks and tabs. - .Pp .Bd -literal -offset indent { s += $1 } END { print "sum is", s, " average is", s/NR } --- 498,508 ---- *************** *** 514,520 **** .Pp .Dl /start/, /stop/ Print all lines between start/stop pairs. - .Pp .Bd -literal -offset indent BEGIN { # Simulate echo(1) for (i = 1; i < ARGC; i++) printf "%s ", ARGV[i] --- 511,516 ----