| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: awk.1,v 1.20 2022/07/05 15:21:39 uwe Exp $ | | 1 | .\" $NetBSD: awk.1,v 1.21 2022/07/05 15:27:14 uwe Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (C) Lucent Technologies 1997 | | 3 | .\" Copyright (C) Lucent Technologies 1997 |
4 | .\" All Rights Reserved | | 4 | .\" All Rights Reserved |
5 | .\" | | 5 | .\" |
6 | .\" Permission to use, copy, modify, and distribute this software and | | 6 | .\" Permission to use, copy, modify, and distribute this software and |
7 | .\" its documentation for any purpose and without fee is hereby | | 7 | .\" its documentation for any purpose and without fee is hereby |
8 | .\" granted, provided that the above copyright notice appear in all | | 8 | .\" granted, provided that the above copyright notice appear in all |
9 | .\" copies and that both that the copyright notice and this | | 9 | .\" copies and that both that the copyright notice and this |
10 | .\" permission notice and warranty disclaimer appear in supporting | | 10 | .\" permission notice and warranty disclaimer appear in supporting |
11 | .\" documentation, and that the name Lucent Technologies or any of | | 11 | .\" documentation, and that the name Lucent Technologies or any of |
12 | .\" its entities not be used in advertising or publicity pertaining | | 12 | .\" its entities not be used in advertising or publicity pertaining |
13 | .\" to distribution of the software without specific, written prior | | 13 | .\" to distribution of the software without specific, written prior |
14 | .\" permission. | | 14 | .\" permission. |
| @@ -34,27 +34,27 @@ | | | @@ -34,27 +34,27 @@ |
34 | .Op Fl v Ar var\| Ns Cm \&= Ns Ar value | | 34 | .Op Fl v Ar var\| Ns Cm \&= Ns Ar value |
35 | .Op Fl safe | | 35 | .Op Fl safe |
36 | .Op Fl d Ns Op Ar N | | 36 | .Op Fl d Ns Op Ar N |
37 | .Op Ar prog | Fl f Ar progfile | | 37 | .Op Ar prog | Fl f Ar progfile |
38 | .Ar | | 38 | .Ar |
39 | .Nm | | 39 | .Nm |
40 | .Fl version | | 40 | .Fl version |
41 | .Sh DESCRIPTION | | 41 | .Sh DESCRIPTION |
42 | .Nm | | 42 | .Nm |
43 | is the Bell Labs' implementation of the AWK programming language as | | 43 | is the Bell Labs' implementation of the AWK programming language as |
44 | described in the | | 44 | described in the |
45 | .Em The AWK Programming Language | | 45 | .Em The AWK Programming Language |
46 | by | | 46 | by |
47 | A. V. Aho, B. W. Kernighan, and P. J. Weinberger. | | 47 | A.V.\~Aho, B.W.\~Kernighan, P.\^J.\~Weinberger. |
48 | .Pp | | 48 | .Pp |
49 | .Nm | | 49 | .Nm |
50 | scans each input | | 50 | scans each input |
51 | .Ar file | | 51 | .Ar file |
52 | for lines that match any of a set of patterns specified literally in | | 52 | for lines that match any of a set of patterns specified literally in |
53 | .Ar prog | | 53 | .Ar prog |
54 | or in one or more files | | 54 | or in one or more files |
55 | specified as | | 55 | specified as |
56 | .Fl f Ar progfile . | | 56 | .Fl f Ar progfile . |
57 | With each pattern | | 57 | With each pattern |
58 | there can be an associated action that will be performed | | 58 | there can be an associated action that will be performed |
59 | when a line of a | | 59 | when a line of a |
60 | .Ar file | | 60 | .Ar file |
| @@ -757,27 +757,27 @@ Print an error message to standard error | | | @@ -757,27 +757,27 @@ Print an error message to standard error |
757 | .Sh SEE ALSO | | 757 | .Sh SEE ALSO |
758 | .Xr egrep 1 , | | 758 | .Xr egrep 1 , |
759 | .Xr lex 1 , | | 759 | .Xr lex 1 , |
760 | .Xr sed 1 , | | 760 | .Xr sed 1 , |
761 | .Xr atan2 3 , | | 761 | .Xr atan2 3 , |
762 | .Xr cos 3 , | | 762 | .Xr cos 3 , |
763 | .Xr exp 3 , | | 763 | .Xr exp 3 , |
764 | .Xr log 3 , | | 764 | .Xr log 3 , |
765 | .Xr sin 3 , | | 765 | .Xr sin 3 , |
766 | .Xr sqrt 3 , | | 766 | .Xr sqrt 3 , |
767 | .Xr strftime 3 , | | 767 | .Xr strftime 3 , |
768 | .Xr time 3 | | 768 | .Xr time 3 |
769 | .Pp | | 769 | .Pp |
770 | A. V. Aho, B. W. Kernighan, P. J. Weinberger, | | 770 | A.\^V.\~Aho, B.\^W.\~Kernighan, P.\^J.\~Weinberger, |
771 | .Em The AWK Programming Language , | | 771 | .Em The AWK Programming Language , |
772 | Addison-Wesley, 1988. | | 772 | Addison-Wesley, 1988. |
773 | ISBN 0-201-07981-X | | 773 | ISBN 0-201-07981-X |
774 | .Pp | | 774 | .Pp |
775 | .Em AWK Language Programming , | | 775 | .Em AWK Language Programming , |
776 | Edition 1.0, published by the Free Software Foundation, 1995 | | 776 | Edition 1.0, published by the Free Software Foundation, 1995 |
777 | .Sh HISTORY | | 777 | .Sh HISTORY |
778 | .Nm nawk | | 778 | .Nm nawk |
779 | has been the default system | | 779 | has been the default system |
780 | .Nm | | 780 | .Nm |
781 | since | | 781 | since |
782 | .Nx 2.0 , | | 782 | .Nx 2.0 , |
783 | replacing the previously used GNU | | 783 | replacing the previously used GNU |