Lines 1-6
Link Here
|
1 |
--- doc/gawk.texi~ Wed Jul 11 01:44:15 2001 |
1 |
--- doc/gawk.texi.orig Mon Apr 22 20:26:20 2002 |
2 |
+++ doc/gawk.texi Wed Jul 11 01:47:18 2001 |
2 |
+++ doc/gawk.texi Mon May 20 23:07:14 2002 |
3 |
@@ -20336,8 +20336,7 @@ |
3 |
@@ -97,7 +97,7 @@ |
|
|
4 |
@finalout |
5 |
@end iftex |
6 |
|
7 |
-@copying |
8 |
+@ifinfo |
9 |
Copyright @copyright{} 1989, 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
10 |
@sp 2 |
11 |
|
12 |
@@ -122,7 +122,7 @@ |
13 |
software. Copies published by the Free Software Foundation raise |
14 |
funds for GNU development.'' |
15 |
@end enumerate |
16 |
-@end copying |
17 |
+@end ifinfo |
18 |
|
19 |
@c Comment out the "smallbook" for technical review. Saves |
20 |
@c considerable paper. Remember to turn it back on *before* |
21 |
@@ -184,8 +184,24 @@ |
22 |
|
23 |
@c This one is correct for gawk 3.1.0 from the FSF |
24 |
ISBN 1-882114-28-0 @* |
25 |
-@sp 2 |
26 |
-@insertcopying |
27 |
+ |
28 |
+Permission is granted to copy, distribute and/or modify this document |
29 |
+under the terms of the GNU Free Documentation License, Version 1.1 or |
30 |
+any later version published by the Free Software Foundation; with the |
31 |
+Invariant Sections being ``GNU General Public License'', the Front-Cover |
32 |
+texts being (a) (see below), and with the Back-Cover Texts being (b) |
33 |
+(see below). A copy of the license is included in the section entitled |
34 |
+``GNU Free Documentation License''. |
35 |
+ |
36 |
+@enumerate a |
37 |
+@item |
38 |
+``A GNU Manual'' |
39 |
+ |
40 |
+@item |
41 |
+``You have freedom to copy and modify this GNU Manual, like GNU |
42 |
+software. Copies published by the Free Software Foundation raise |
43 |
+funds for GNU development.'' |
44 |
+@end enumerate |
45 |
@sp 2 |
46 |
Cover art by Etienne Suvasa. |
47 |
@end titlepage |
48 |
@@ -228,7 +244,9 @@ |
49 |
This file documents @command{awk}, a program that you can use to select |
50 |
particular records in a file and perform operations upon them. |
51 |
|
52 |
-@insertcopying |
53 |
+This is Edition @value{EDITION} of @cite{@value{TITLE}: @value{SUBTITLE}}, |
54 |
+for the @value{VERSION}.@value{PATCHLEVEL} (or later) version of the GNU |
55 |
+implementation of AWK. |
56 |
|
57 |
@end ifnottex |
58 |
|
59 |
@@ -21418,8 +21436,7 @@ |
4 |
arranges to clean up any temporary files on program exit or upon an |
60 |
arranges to clean up any temporary files on program exit or upon an |
5 |
interrupt. |
61 |
interrupt. |
6 |
|
62 |
|
Lines 10-16
Link Here
|
10 |
|
66 |
|
11 |
The next part loops through all the command-line arguments. |
67 |
The next part loops through all the command-line arguments. |
12 |
There are several cases of interest: |
68 |
There are several cases of interest: |
13 |
@@ -20358,13 +20357,13 @@ |
69 |
@@ -21440,13 +21457,13 @@ |
14 |
These are saved and passed on to @command{gawk}. |
70 |
These are saved and passed on to @command{gawk}. |
15 |
|
71 |
|
16 |
@item -f@r{,} --file@r{,} --file=@r{,} -Wfile= |
72 |
@item -f@r{,} --file@r{,} --file=@r{,} -Wfile= |
Lines 26-33
Link Here
|
26 |
|
82 |
|
27 |
@item --version@r{,} -Wversion |
83 |
@item --version@r{,} -Wversion |
28 |
@command{igawk} prints its version number, runs @samp{gawk --version} |
84 |
@command{igawk} prints its version number, runs @samp{gawk --version} |
29 |
@@ -20375,17 +20374,12 @@ |
85 |
@@ -21457,17 +21474,12 @@ |
30 |
or @option{-Wsource} arguments are supplied, then the first non-option argument |
86 |
or @option{-Wsource} arguments are supplied, then the first nonoption argument |
31 |
should be the @command{awk} program. If there are no command-line |
87 |
should be the @command{awk} program. If there are no command-line |
32 |
arguments left, @command{igawk} prints an error message and exits. |
88 |
arguments left, @command{igawk} prints an error message and exits. |
33 |
-Otherwise, the first argument is echoed into @file{/tmp/ig.s.$$}. |
89 |
-Otherwise, the first argument is echoed into @file{/tmp/ig.s.$$}. |
Lines 35-45
Link Here
|
35 |
In any case, after the arguments have been processed, |
91 |
In any case, after the arguments have been processed, |
36 |
-@file{/tmp/ig.s.$$} contains the complete text of the original @command{awk} |
92 |
-@file{/tmp/ig.s.$$} contains the complete text of the original @command{awk} |
37 |
-program. |
93 |
-program. |
38 |
+the complete text of the original @code{awk} program |
94 |
+the complete text of the original @command{awk} program |
39 |
+is contained in a temporary file. |
95 |
+is contained in a temporary file. |
40 |
|
96 |
|
41 |
@cindex @command{sed} utility |
97 |
@cindex @command{sed} utility |
42 |
-@cindex stream editor |
98 |
-@cindex stream editors |
43 |
-The @samp{$$} in @command{sh} represents the current process ID number. |
99 |
-The @samp{$$} in @command{sh} represents the current process ID number. |
44 |
-It is often used in shell programs to generate unique temporary @value{FN}s. |
100 |
-It is often used in shell programs to generate unique temporary @value{FN}s. |
45 |
-This allows multiple users to run @command{igawk} without worrying |
101 |
-This allows multiple users to run @command{igawk} without worrying |
Lines 47-53
Link Here
|
47 |
The program is as follows: |
103 |
The program is as follows: |
48 |
|
104 |
|
49 |
@cindex @code{igawk.sh} program |
105 |
@cindex @code{igawk.sh} program |
50 |
@@ -20400,6 +20394,18 @@ |
106 |
@@ -21482,6 +21494,18 @@ |
51 |
# Arnold Robbins, arnold@@gnu.org, Public Domain |
107 |
# Arnold Robbins, arnold@@gnu.org, Public Domain |
52 |
# July 1993 |
108 |
# July 1993 |
53 |
|
109 |
|
Lines 66-72
Link Here
|
66 |
@c endfile |
122 |
@c endfile |
67 |
@end ignore |
123 |
@end ignore |
68 |
@c file eg/prog/igawk.sh |
124 |
@c file eg/prog/igawk.sh |
69 |
@@ -20409,7 +20415,7 @@ |
125 |
@@ -21491,7 +21515,7 @@ |
70 |
shift |
126 |
shift |
71 |
else |
127 |
else |
72 |
# cleanup on exit, hangup, interrupt, quit, termination |
128 |
# cleanup on exit, hangup, interrupt, quit, termination |
Lines 75-81
Link Here
|
75 |
fi |
131 |
fi |
76 |
|
132 |
|
77 |
while [ $# -ne 0 ] # loop over arguments |
133 |
while [ $# -ne 0 ] # loop over arguments |
78 |
@@ -20426,26 +20432,26 @@ |
134 |
@@ -21508,26 +21532,26 @@ |
79 |
|
135 |
|
80 |
-[vF]*) opts="$opts '$1'" ;; |
136 |
-[vF]*) opts="$opts '$1'" ;; |
81 |
|
137 |
|
Lines 108-114
Link Here
|
108 |
shift;; |
164 |
shift;; |
109 |
|
165 |
|
110 |
-?version) |
166 |
-?version) |
111 |
@@ -20460,7 +20466,7 @@ |
167 |
@@ -21542,7 +21566,7 @@ |
112 |
shift |
168 |
shift |
113 |
done |
169 |
done |
114 |
|
170 |
|
Lines 117-123
Link Here
|
117 |
then |
173 |
then |
118 |
@group |
174 |
@group |
119 |
if [ -z "$1" ] |
175 |
if [ -z "$1" ] |
120 |
@@ -20469,12 +20475,12 @@ |
176 |
@@ -21551,12 +21575,12 @@ |
121 |
exit 1 |
177 |
exit 1 |
122 |
@end group |
178 |
@end group |
123 |
else |
179 |
else |
Lines 132-138
Link Here
|
132 |
@c endfile |
188 |
@c endfile |
133 |
@end example |
189 |
@end example |
134 |
|
190 |
|
135 |
@@ -20553,7 +20559,7 @@ |
191 |
@@ -21635,7 +21659,7 @@ |
136 |
@c endfile |
192 |
@c endfile |
137 |
@end example |
193 |
@end example |
138 |
|
194 |
|
Lines 141-147
Link Here
|
141 |
The main loop comes next. Input lines are read in succession. Lines that |
197 |
The main loop comes next. Input lines are read in succession. Lines that |
142 |
do not start with @samp{@@include} are printed verbatim. |
198 |
do not start with @samp{@@include} are printed verbatim. |
143 |
If the line does start with @samp{@@include}, the @value{FN} is in @code{$2}. |
199 |
If the line does start with @samp{@@include}, the @value{FN} is in @code{$2}. |
144 |
@@ -20599,7 +20605,7 @@ |
200 |
@@ -21681,7 +21705,7 @@ |
145 |
@} |
201 |
@} |
146 |
close(input[stackptr]) |
202 |
close(input[stackptr]) |
147 |
@} |
203 |
@} |
Lines 150-156
Link Here
|
150 |
@c endfile |
206 |
@c endfile |
151 |
@end example |
207 |
@end example |
152 |
|
208 |
|
153 |
@@ -20625,7 +20631,7 @@ |
209 |
@@ -21707,7 +21731,7 @@ |
154 |
|
210 |
|
155 |
@example |
211 |
@example |
156 |
@c file eg/prog/igawk.sh |
212 |
@c file eg/prog/igawk.sh |