source: trunk/essentials/sys-apps/gawk/doc/igawk.1

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 1.1 KB
Line 
1.TH IGAWK 1 "Nov 3 1999" "Free Software Foundation" "Utility Commands"
2.SH NAME
3igawk \- gawk with include files
4.SH SYNOPSIS
5.B igawk
6[ all
7.I gawk
8options ]
9.B \-f
10.I program-file
11[
12.B \-\^\-
13] file .\^.\^.
14.br
15.B igawk
16[ all
17.I gawk
18options ]
19[
20.B \-\^\-
21]
22.I program-text
23file .\^.\^.
24.SH DESCRIPTION
25.I Igawk
26is a simple shell script that adds the ability to have ``include files'' to
27.IR gawk (1).
28.PP
29AWK programs for
30.I igawk
31are the same as for
32.IR gawk ,
33except that, in addition, you may have lines like
34.RS
35.sp
36.ft B
37@include getopt.awk
38.ft R
39.sp
40.RE
41in your program to include the file
42.B getopt.awk
43from either the current directory or one of the other directories
44in the search path.
45.SH OPTIONS
46See
47.IR gawk (1)
48for a full description of the AWK language and the options that
49.I gawk
50supports.
51.SH EXAMPLES
52.nf
53.ft B
54cat << EOF > test.awk
55@include getopt.awk
56.sp
57BEGIN {
58 while (getopt(ARGC, ARGV, "am:q") != \-1)
59 \&.\^.\^.
60}
61EOF
62.sp
63igawk \-f test.awk
64.ft R
65.fi
66.SH SEE ALSO
67.IR gawk (1)
68.PP
69.IR "Effective AWK Programming" ,
70Edition 1.0, published by the Free Software Foundation, 1995.
71.SH AUTHOR
72Arnold Robbins
73.RB ( arnold@skeeve.com ).
Note: See TracBrowser for help on using the repository browser.