OSDN Git Service

GNU_gawk: Generate release and draft from ja.po.
authorAkihiro MOTOKI <amotoki@gmail.com>
Sat, 2 Jun 2012 21:21:50 +0000 (06:21 +0900)
committerAkihiro MOTOKI <amotoki@gmail.com>
Sat, 2 Jun 2012 21:21:50 +0000 (06:21 +0900)
manual/GNU_gawk/draft/man1/gawk.1 [new file with mode: 0644]
manual/GNU_gawk/draft/man1/igawk.1
manual/GNU_gawk/original/man1/gawk.1
manual/GNU_gawk/release/man1/gawk.1 [moved from manual/GNU_gawk/contrib/man1/gawk.1 with 100% similarity]
manual/GNU_gawk/release/man1/igawk.1
manual/GNU_gawk/translation_list

diff --git a/manual/GNU_gawk/draft/man1/gawk.1 b/manual/GNU_gawk/draft/man1/gawk.1
new file mode 100644 (file)
index 0000000..52492fe
--- /dev/null
@@ -0,0 +1,1344 @@
+.ds PX \s-1POSIX\s+1
+.ds UX \s-1UNIX\s+1
+.ds AN \s-1ANSI\s+1
+.ds GN \s-1GNU\s+1
+.ds AK \s-1AWK\s+1
+.if  !\n(.g \{\
+.      if !\w|\*(lq| \{\
+.              ds lq ``
+.              if \w'\(lq' .ds lq "\(lq
+.      \}
+.      if !\w|\*(rq| \{\
+.              ds rq ''
+.              if \w'\(rq' .ds rq "\(rq
+.      \}
+.\}
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
+.TH GAWK 1 "May 17 2000" "Free Software Foundation" "Utility Commands"
+.SH 名前
+gawk \- パターン検索・処理言語
+.SH 書式
+\fBgawk\fP [ \*(PX or \*(GN style options ] \fB\-f\fP \fIprogram\-file\fP [ \fB\-\^\-\fP ]
+file .\|.\|.
+.br
+\fBgawk\fP [ \*(PX or \*(GN style options ] [ \fB\-\^\-\fP ] \fIprogram\-text\fP file
+\&.\|.\|.
+.SH 説明
+\fIgawk\fP は \*(GN プロジェクトが実装した プログラミング言語 \*(AK の処理系です。 本処理系は \*(PX 1003.2
+コマンド言語とユーティリティ規約に定められた 言語の定義に適合しています。 本バージョンはまた、Aho, Kernighan, Weinberger
+の著書 \fIThe AWK Programming Language\fP の記述にもとづいており、 System V Release 4 \*(UX の
+\fIawk\fP の付加機能も含んでいます。 \fIgawk\fP はまた、Bell Labs の新機能および \*(GN 独自の拡張も提供します。
+.PP
+コマンドラインは、 \fIgawk\fP へのオプション、(もし \fB\-f\fP または \fB\-\^\-file\fP オプションにより指定されていなければ)\*(AK
+のプログラムテキスト、そして 残りの引数列からなります。 この残りの引数列は、定義済み \*(AK 変数 \fBARGC\fP, \fBARGV\fP
+を用いることで参照できます。
+.SH オプションフォーマット
+.PP
+\fIgawk\fP へのオプションは、伝統的な \*(PX 形式の 1 文字オプションと、\*(GN 形式の ロングオプションがあります。 \*(PX
+形式のオプションは単一の \*(lq\-\*(rq で始まり、一方 \*(GN 形式のもの は \*(lq\-\^\-\*(rq で始まります。ロングオプションは \*(GN
+の独自仕様と \*(PX の必須仕様の両方について用意されています。
+.PP
+\*(PX 標準に従い、 \fIgawk\fP 独自仕様のオプションは \fB\-W\fP オプションへの引数で与えます。 複数の \fB\-W\fP
+オプションを指定することもできます。 後述の ように、各 \fB\-W\fP オプションには、それに対応するロングオプション
+が存在します。ロングオプションへの引数は、空白を入れずに \fB=\fP でつないで指定するか、その次のコマンドライン引数として渡すことができます。
+ロングオプションは、短縮形が一意である限り、短縮することができます。
+.SH オプション
+.PP
+\fIgawk\fP は以下のオプションを受け付けます。
+.TP 
+.PD 0
+\fB\-F\fP\fI fs\fP
+.TP 
+.PD
+\fB\-\^\-field\-separator\fP\fI fs\fP
+入力フィールドセパレータ (変数 \fBFS\fP の値)を \fIfs\fP とします。
+.TP 
+.PD 0
+\fB\-v\fP\fI var\fP\fB\^=\^\fP\fIval\fP
+.TP 
+.PD
+\fB\-\^\-assign \fP\fIvar\fP\fB\^=\^\fP\fIval\fP
+プログラムを実行する前に、変数 \fIvar\fP に値 \fIval\fP を設定します。このようにして設定 した変数は、 \*(AK プログラムの
+\fBBEGIN\fP ブロック内でも参照できます。
+.TP 
+.PD 0
+\fB\-f\fP\fI program\-file\fP
+.TP 
+.PD
+\fB\-\^\-file\fP\fI program\-file\fP
+\fBawk\fP への第 1 引数を用いるかわりに、\*(AK プログラムをファイル \fIprogram\-file\fP から読み込みます。 \fB\-f\fP
+(または \fB\-\^\-file\fP ) オプションは複数回使 用することができます。
+.TP 
+.PD 0
+\fB\-mf\fP\fI NNN\fP
+.TP 
+.PD
+\fB\-mr\fP\fI NNN\fP
+さまざまなメモリの制限値を \fINNN\fP に設定します。フラグ \fBf\fP は最大フィールド数、フラグ \fBr\fP は最大レコードサイズを設定します。この
+2 つのフラグと \fB\-m\fP オプションは、Bell Labs バージョンの \*(UX \fIawk\fP に由来しています。しかし、 \fIgawk\fP
+にはこのような制限はありませんので、 \fIgawk\fP では本オプションは無視されます。
+.TP 
+.PD 0
+\fB\-W traditional\fP
+.TP 
+.PD 0
+\fB\-W compat\fP
+.TP 
+.PD 0
+\fB\-\^\-traditional\fP
+.TP 
+.PD
+\fB\-\^\-compat\fP
+\fI互換\fP モードで動作します。互換モードでは、 \fIgawk\fP は \*(UX \fIawk\fP と等価な動作を行い、\*(GN
+独自拡張は解釈できません。 このオプションの他の形式よりも、 \fB\-\^\-traditional\fP を使用することが好まれます。 詳しくは後述の
+\fBGNU 拡張\fP を参照してください。
+.TP 
+.PD 0
+\fB\-W copyleft\fP
+.TP 
+.PD 0
+\fB\-W copyright\fP
+.TP 
+.PD 0
+\fB\-\^\-copyleft\fP
+.TP 
+.PD
+\fB\-\^\-copyright\fP
+\*(GN の著作権表示の短いバージョンを標準出力へ書き出し、 成功状態で終了します。
+.TP 
+.PD 0
+\fB\-W help\fP
+.TP 
+.PD 0
+\fB\-W usage\fP
+.TP 
+.PD 0
+\fB\-\^\-help\fP
+.TP 
+.PD
+\fB\-\^\-usage\fP
+短めのオプション一覧を標準出力へ書き出します。 ( \fIGNU コーディング規約\fP に従い、本オプションを指定すると \fIawk\fP
+はただちに終了し、成功を意味する終了ステータスを返します。)
+.TP 
+.PD 0
+\fB\-W lint\fP
+.TP 
+.PD
+\fB\-\^\-lint\fP
+他の \*(AK での処理が疑わしい、あるいは他の \*(AK との互換性がない構造が ある場合に警告を行います。
+.TP 
+.PD 0
+\fB\-W lint\-old\fP
+.TP 
+.PD
+\fB\-\^\-lint\-old\fP
+オリジナルの Unix \fIawk\fP へ移植できない構造に関して警告を行います。
+.ig
+.\" This option is left undocumented, on purpose.
+.TP
+.PD 0
+\fB\-W nostalgia\fR
+.TP
+.PD
+\fB\-\^\-nostalgia\fR
+Provide a moment of nostalgia for long time
+\fIawk\fR
+users.
+..
+.TP 
+.PD 0
+\fB\-W posix\fP
+.TP 
+.PD
+\fB\-\^\-posix\fP
+\fI互換\fP モードをオンにし、更に以下の制約が課せられます。
+.RS
+.TP  \w'\(bu'u+1n
+\(bu
+\fB\ex\fP エスケープシーケンスを解釈しません。
+.TP 
+\(bu
+\fBFS\fP が単一の空白に設定された場合、空白とタブのみがフィールドを区切り、 改行はフィールドを区切りません。
+.TP 
+\(bu
+キーワード \fBfunction\fP に対応する別名 \fBfunc\fP を解釈しません。
+.TP 
+\(bu
+演算子 \fB^\fP や \fB^=\fP のかわりに \fB**\fP や \fB**=\fP を用いることができません。
+.TP 
+\(bu
+\fBfflush()\fP 関数は利用できません。
+.RE
+.TP 
+.PD 0
+\fB\-W re\-interval\fP
+.TP 
+.PD
+\fB\-\^\-re\-interval\fP
+正規表現のマッチングで \fIインターバル表現 (interval expressions)\fP を有効にします (後述の \fB正規表現\fP
+を参照してください)。 インターバル表現は伝統的な \*(AK 言語では利用できませんでした。 \fIawk\fP と \fIegrep\fP
+が一貫性を持つように、\*(PX 標準がこれらを追加しました。 しかし、これらを使用すると古い \*(AK プログラムを動かなくしてしまうでしょうから、
+このオプションによって要求されたときと、 \fB\-\^\-posix\fP が指定されたときに、 \fIgawk\fP はこれらの機能を提供します。
+.TP 
+.PD 0
+\fB\-W source \fP\fIprogram\-text\fP
+.TP 
+.PD
+\fB\-\^\-source\fP\fI program\-text\fP
+\fIprogram\-text\fP を \*(AK プログラムとして用います。本オプションにより、ライブラリ化された関数 ( \fB\-f\fP または
+\fB\-\^\-file\fP オプションを用いて読み込む) とコマンドラインから入力されたプログラムを 簡単に合成することができます。
+これは、主にシェルスクリプトで用いられる中規模から大規模な \*(AK プログラム のために用意されました。
+.TP 
+.PD 0
+\fB\-W version\fP
+.TP 
+.PD
+\fB\-\^\-version\fP
+実行された \fIgawk\fP プログラムのバージョン情報を標準出力へ書き出します。これは主に、 あなたが使用している \fIgawk\fP プログラムが
+Free Software Foundation が配布してい るプログラムのうち、最新のものであるかどうかを知る場合に便利です。
+またバグレポートのときにも有用です。 (本オプションを指定すると、 \fIGNU コーディング規約\fP に従い、 \fIawk\fP
+はただちに終了し、成功を意味する終了ステータスを返します。)
+.TP 
+\fB\-\^\-\fP
+オプションの終了を意味します。\*(AK プログラムに \*(lq\-\*(rq から始まるオプションではない 引数を与える場合に便利です。 これは、主に他の
+\*(PX プログラムの多くが引数に対して行う解釈と 一貫性を保つためにあります。
+.PP
+互換モードでは、他のオプションは不正であるとされるか、無視されます。 通常の実行において、プログラムテキストがコマンドラインに指定されていれば、
+不明なオプションは、\*(AK プログラムに \fBARGV\fP 配列を通して渡されます。これ は、\*(AK プログラムを \*(lq#!\*(rq
+機構を用いて実行する場合に特に便利です。
+.SH "AWK プログラムの実行"
+.PP
+\*(AK プログラムは、パターンとアクションの組の列と、(もし必要なら) 関数定義か らなります。
+.RS
+.PP
+\fIpattern\fP\fB       { \fP\fIaction statements\fP\fB }\fP
+.br
+\fBfunction \fP\fIname\fP\fB(\fP\fIparameter list\fP\fB) { \fP\fIstatements\fP\fB }\fP
+.RE
+.PP
+\fIgawk\fP はまず、 \fIprogram\-file\fP (複数可) が指定されていればそれから、 \fB\-\^\-source\fP
+の引数から、あるいは、最初のオプションではない引数から プログラムを読み込みます。 \fB\-f\fP と \fB\-\^\-source\fP
+オプションは、コマンドラインで複数回指定できます。 \fIgawk\fP は、すべての \fIprogram\-file\fP
+とコマンドラインで指定したプログラムを結 合して使用します。新しく作った \*(AK プログラムひとつひとつに \*(AK
+関数のライブラリを埋め込む必要が無いので、この機能はライブラリの構築に 便利です。
+また、ライブラリ関数とコマンドラインで指定したプログラムとを混合して使 うことも可能にしています。
+.PP
+環境変数 \fBAWKPATH\fP により、 \fB\-f\fP オプションで指定されたファイルを検索するパスを指定できます。 \fBAWKPATH\fP
+が設定されていない場合のデフォルトパスは \fB".:/usr/local/share/awk"\fP です。 (実際のディレクトリは \fIgawk\fP
+がどのように構築/インストールされたかに依存して、さまざまなものとなります。)  \fB\-f\fP オプションで指定したファイル名が \*(lq/\*(rq
+を含んでいる場合は、 パス検索は行われません。
+.PP
+\fIgawk\fP は、 \*(AK プログラムを次の順序で実行します。 まず、 \fB\-v\fP オプションで指定された変数への代入をすべて行います。
+次に、プログラムを内部形式にコンパイルします。 そして、(もし存在すれば)  \fBBEGIN\fP ブロック (複数存在可) を実行します。 配列
+\fBARGV\fP で指定されたファイルを順に読み、処理を行います (コマンドラインでファイル名が 指定されていなければ、標準入力に対して処理を行います)。
+.PP
+コマンドラインで指定されたファイル名が \fIvar\fP\fB=\fP\fIval\fP という形式ならば、それ は変数への代入であると解釈されます。変数 \fIvar\fP
+は値 \fIval\fP に設定されます (これは、すべての \fBBEGIN\fP ブロックを実行したあとに行われます)。コマンドライン
+での変数の代入は、\*(AK が入力をフィールドやレコードに分割するためのセパレータ を実行時に変更するのに便利です。また、1 つのデータファイルに
+対し数回処理を行う必要がある場合、状態をコントロールするのにも便利です。
+.PP
+配列 \fBARGV\fP の要素に空 (\fB""\fP) がある場合、 \fIgawk\fP はその要素を無視します。
+.PP
+\fIgawk\fP は、入力された各レコードに対してマッチする \fIパターン\fP が \*(AK プログラム内にあるかどうかを
+検索します。そのレコードにマッチしたパターンすべてについて、それぞれ対応する \fIアクション\fP が実行されます。
+パターンは、プログラムテキストに出現した順序で検索されます。
+.PP
+入力が尽きると、 \fIgawk\fP は (もしあれば)  \fBEND\fP ブロック (複数存在可) を実行します。
+.SH 変数、レコード、フィールド
+\*(AK における変数は動的、すなわち、最初に使用されたときに生成されます。 変数の値は、浮動小数点数か、文字列か、あるいは両方です。変数の用い
+られ方により変化します。\*(AK ではまた、1 次元配列を利用することができます。 多次元配列
+も、擬似的にではありますが、利用可能です。プログラム実行開始時に、 いくつかの定義済み変数が設定されます。
+これらを必要に応じて説明し、以下でまとめます。
+.SS レコード
+通常、レコードは改行文字により区切られます。 レコードの区切りは、組み込み変数 \fBRS\fP へ値を代入することにより、制御できます。 \fBRS\fP
+が単一文字の場合、その文字がレコードを区切ります。 そうでない場合は、 \fBRS\fP は正規表現となります。
+入力中のテキストで、この正規表現にマッチするものがレコードを区切ります。 しかし互換モードでは、
+文字列値の最初の文字だけが、レコードセパレータに使用されます。 \fBRS\fP が空文字列に設定されているときには、レコードは空行で区切られます。
+\fBRS\fP が空文字列に設定されたときには、 \fBFS\fP の値にかかわらず、改行文字は常にフィールドセパレータとなります。
+.SS フィールド
+.PP
+入力レコードを読み込むごとに、 \fIgawk\fP はそのレコードを \fIフィールド\fP に分割しま す。分割する際には、変数 \fBFS\fP
+の値がフィールドセパレータとして参照されます。 \fBFS\fP の値が1文字なら、その 文字を境にフィールドが分割されます。 \fBFS\fP
+が空文字列の場合、個々の文字がフィールドセパレータとなります。 いずれでもない場合、 \fBFS\fP は完全な正規表現である
+と解釈されます。特殊な場合として \fBFS\fP が単一の空白のときには、フィールドは 連続した空白・タブ・改行により分割されます。 (後述の
+\fB\-\^\-posix\fP の議論を参照してください)。 変数 \fBIGNORECASE\fP (下記参照) の 値は、 \fBFS\fP
+が正規表現の場合フィールド分割にも影響を与えることと、 \fBRS\fP が正規表現の場合レコード分割にも影響を与えることに注意してください。
+.PP
+変数 \fBFIELDWIDTHS\fP の値が空白で区切られた数字の列である場合、各フィールドは 固定長であると解釈され、 \fIgawk\fP
+は指定された幅ごとにフィールドの 分割を行います。この場合、 \fBFS\fP の値は無視されます。 \fBFS\fP に新たに値を設定 することにより、この
+\fBFIELDWIDTHS\fP の効果を打ち消し、標準の動作に戻すことができます。
+.PP
+入力レコード中の各フィールドの値は、左から \fB$1\fP, \fB$2\fP 等という名前で参照できます。 \fB$0\fP は
+レコード全体です。フィールドに値を代入することもできます。フィールドは定数だ けでなく、変数によって参照することもできます。以下の例では、入力レコードの
+5 番目のフィールドの値を出力します。
+.RS
+.PP
+\fBn = 5\fP
+.br
+\fBprint $n\fP
+.RE
+.PP
+変数 NF は、自動的に入力レコードのフィールドの数に設定されます。
+.PP
+存在しないフィールド (すなわち、 \fB$NF\fP より右のフィールド) を参照した結果は
+空文字列になります。しかしながら、存在しないフィールドへの代入(たとえ ば、 \fB$(NF+2)\fP=\fB5\fP ) は \fBNF\fP
+の値を増加させ、間のフィールドには空文字が設定されます。 さらに \fB$0\fP の値は、フィールドの値を変数 \fBOFS\fP
+の値でフィールドを区切ったものとして再計算されます。 負のフィールド番号への参照は致命的エラーとなります。 \fBNF\fP
+を減少させると、新しい値を越えるフィールドの値は失われます。 \fB$0\fP の値は、フィールドの値を変数 \fBOFS\fP
+の値でフィールドを区切ったものとして再計算されます。
+.SS 組み込み変数
+.PP
+\fIgawk\fP の組み込み変数は以下のとおりです。
+.PP
+.TP  \w'\fBFIELDWIDTHS\fR'u+1n
+\fBARGC\fP
+コマンドライン引数の個数 ( \fIgawk\fP へのオプションと、プログラム指定は含みま せん)。
+.TP 
+\fBARGIND\fP
+現在処理中のファイル名が格納されている配列 \fBARGV\fP のインデックス。
+.TP 
+\fBARGV\fP
+コマンドライン引数の配列。配列は、 0 から \fBARGC\fP \- 1 までのインデックスを 持ちます。 \fBARGV\fP
+の内容を変更することで、入力に用いるファイル名を変 更することができます。
+.TP 
+\fBCONVFMT\fP
+数値の変換フォーマット。デフォルト値は \fB"%.6g"\fP です。
+.TP 
+\fBENVIRON\fP
+.\" but don't hold your breath...
+現在の環境変数の値からなる配列。配列は、環境変数名によりインデックスされ 、各要素の値はその環境変数の値です (例えば
+\fBENVIRON["HOME"]\fP は \fB/home/arnold\fP となるでしょう)。本配列に 代入を行っても、 \fIgawk\fP
+からリダイレクトや \fBsystem()\fP 関数により実行される プログラムの環境には影響を与えません(これは、将来の \fIgawk\fP
+では変更される可能性があります)。
+.TP 
+\fBERRNO\fP
+\fBgetline\fP のリダイレクト、 \fBgetline\fP による読み込み、 \fBclose()\fP
+関数の実行時のいずれかにシステムエラーが発生した場合、変数 \fBERRNO\fP にはエラーの内容を示した文字列が設定されます。
+.TP 
+\fBFIELDWIDTHS\fP
+空白で区切られたフィールド長のリスト。もしこの値が設定されていれば、 \fIgawk\fP は \fBFS\fP
+の値を用いてフィールド分割するかわりに、固定長のフィールド分割を行 います。固定長のフィールド分割機能はまだ実験的なもので、 \fIgawk\fP
+が改良されるに従って意味が変化する可能性があります。
+.TP 
+\fBFILENAME\fP
+現在の入力ファイル名。もし、コマンドラインで入力ファイルが指定されてい なければ、 \fBFILENAME\fP の値は \*(lq\-\*(rq です。しかしながら、
+\fBBEGIN\fP ブロック内では \fBFILENAME\fP は未定義です。
+.TP 
+\fBFNR\fP
+現在の入力ファイルにおける入力レコード番号。
+.TP 
+\fBFS\fP
+入力フィールドセパレータ。デフォルトでは単一の空白です。 上述の \fBフィールド\fP を参照してください。
+.TP 
+\fBIGNORECASE\fP
+すべての正規表現と文字列操作において大文字小文字の区別を制御します。もし、 \fBIGNORECASE\fP が 0
+でない値に設定されていれば、文字列比較、ルールのパターンマッチ、 \fBFS\fP によるフィールド分割、 \fBRS\fP によるレコード分割、 \fB~\fP と
+\fB!~\fP による正規表現マッチ、定義済み関数 \fBgensub()\fP, \fBgsub()\fP, \fBindex()\fP, \fBmatch()\fP,
+\fBsplit()\fP, \fBsub()\fP において大文字と小文字の違いは無視されます。このため、 \fBIGNORECASE\fP が 0 以外の値なら、
+\fB/aB/\fP は \fB"ab"\fP, \fB"aB"\fP, \fB"Ab"\fP, \fB"AB"\fP のいずれにもマッチすることになります。 他の\*(AK
+変数と同様に \fBIGNORECASE\fP の初期値は 0 なので、通常は 正規表現と文字列操作において大文字と小文字は区別されます。 Unix
+では、大文字小文字を無視する場合、 ISO 8859\-1 Latin\-1 文字集合全てを使用できます。 \fB注:\fP 3.0 以前の \fIgawk\fP では
+\fBIGNORECASE\fP は正規表現操作のみに影響しました。現在は文字列比較にも影響します。
+.TP 
+\fBNF\fP
+現在の入力レコードのフィールド数。
+.TP 
+\fBNR\fP
+現在までに読み込んだ入力レコード数の合計。
+.TP 
+\fBOFMT\fP
+数字の出力フォーマット。デフォルト値は \fB"%.6g"\fP です。
+.TP 
+\fBOFS\fP
+出力フィールドセパレータ。デフォルトは空白です。
+.TP 
+\fBORS\fP
+出力レコードセパレータ。デフォルトは改行です。
+.TP 
+\fBRS\fP
+入力レコードセパレータ。デフォルトは改行です。
+.TP 
+\fBRT\fP
+レコードターミネータ。 \fIgawk\fP は、 \fBRS\fP で指定される文字または正規表現にマッチする入力テキストを、 \fBRT\fP に設定します。
+.TP 
+\fBRSTART\fP
+\fBmatch()\fP によりマッチした最初の文字の位置。0 はマッチしなかったことを示します。
+.TP 
+\fBRLENGTH\fP
+\fBmatch()\fP によりマッチした文字列の長さ。\-1 はマッチしなかったことを示します。
+.TP 
+\fBSUBSEP\fP
+多次元配列を実現する際に用いられる、配列のインデックスを結合する文字。 デフォルト値は \fB"\e034"\fP です。
+.SS 配列
+.PP
+配列は、ブラケット (\fB[\fP と \fB]\fP)  の間の式によってインデックスを指定します。もし式が式 のリスト(式, 式 .\|.\|.)
+なら、式の値を変数 \fBSUBSEP\fP の値を区切りとして 結合した文字列をインデックスとして用います。これにより、多次元配列を
+シミュレートしています。例えば、
+.PP
+.RS
+\fBi = "A";\^ j = "B";\^ k = "C"\fP
+.br
+\fBx[i, j, k] = "hello, world\en"\fP
+.RE
+.PP
+は、文字列 \fB"hello, world\en"\fP を、文字列 \fB"A\e034B\e034C"\fP で インデックスした配列 x
+の要素に代入しています。 \*(AK の配列はすべて、文字列によりインデックスを行う連想配列です。
+.PP
+特殊な演算子 \fBin\fP を \fBif\fP または \fBwhile\fP ステートメントで用いることによって、あるインデックス値に
+おける配列の値が定義されているかを調べることができます。
+.PP
+.RS
+.nf
+\fBif (val in array)
+       print array[val]\fP
+.fi
+.RE
+.PP
+もし、配列が多次元インデックスを持つなら、 \fB(i, j) in array\fP を用います。
+.PP
+\fBin\fP はまた、 \fBfor\fP ループ中で、配列のすべてのインデックス値について繰り返すために 用いることができます。
+.PP
+配列の要素は、 \fBdelete\fP ステートメントを用いて削除することができます。 \fBdelete\fP ステートメントはまた、
+添字を指定せずに配列名のみを指定することにより、 配列全体を削除するためにも使えます。
+.SS 変数の型と変換
+.PP
+変数とフィールドは、(浮動小数点数の) 数値または文字列、あるいは両方として 扱われます。
+変数の値がどのように解釈されるかは、変数の使われ方によって変化します。 数式中で用いられれば変数は数値として解釈され、文字列として用いられれ
+ば文字列として解釈されます。
+.PP
+変数の値を強制的に数値であると解釈させたい場合は、変数に 0 を加えます。 文字列と解釈させたい場合は空文字列を結合します。
+.PP
+文字列を数値に変換する必要がある場合、変換は \fIatof\fP(3)  によって行われます。 数値を文字列に変換する場合は、変数 \fBCONVFMT\fP
+の値をフォーマット文字列として用いて、 \fIsprintf\fP(3)  により行われます。\*(AK
+ではすべての数値は浮動小数点数ですが、整数値は常に整数 として変換が行われます。 よって、以下の場合、
+.PP
+.RS
+.nf
+\fBCONVFMT = "%2.2f"
+a = 12
+b = a ""\fP
+.fi
+.RE
+.PP
+変数 \fBb\fP は文字列値 \fB"12"\fP となり、\fB"12.00"\fP とはなりません。
+.PP
+\fIgawk\fP は、以下のようにして比較を行います: 2 つの変数が数値なら数値として比
+較します。もし片方が数値で片方が`数値'文字列なら、数値として比較されます。 片方が数値でない文字列なら、数値のほうが文字列に変換され、文字列として
+比較されます。両方とも文字列なら、文字列として比較されます。\*(PX 標準に従う なら、両方とも数値文字列の場合は数値として比較しますが、これは明ら
+かに間違いです。 \fIgawk\fP はそのような動作をしません。
+.PP
+\fB"57"\fP のような文字列定数は数値文字列では \fIなく\fP 、文字列定数です。「数値文字列」の概念は、フィールド、 \fBgetline\fP の入力、
+\fBFILENAME\fP 、 \fBARGV\fP の要素、 \fBENVIRON\fP の要素、数値文字列から \fBsplit()\fP
+によって作成された配列の要素に対してのみ適用されます。 基本的な考え方では、 \fIユーザ入力\fP
+、それも数値に見えるユーザ入力のみが数値として扱われます。
+.PP
+初期化されていない変数は、数値としては 0 を、文字列としては "" (空文字列) を 持ちます。
+.SH パターンとアクション
+awk は行指向の言語です。まずパターン、次にアクションが続きます。 アクションは \fB{\fP と \fB}\fP
+で囲みます。パターンまたはアクションは省略することもできます。 もちろん、両方とも 省略してしまっては意味がありません。
+パターンがない場合、アクションはすべての入力レコードに 対して適用されます。省略されたアクションは以下と等価です。
+.RS
+.PP
+\fB{ print }\fP
+.RE
+.PP
+これはレコード全体を出力します。
+.PP
+コメントは文字 \*(lq#\*(rq で始まり、行末まで続きます。空行は、複数ステートメントの 間をあけるのに使うことができます。
+通常、ステートメントは改行で終わります。ただし、 次の記号で行が終わる場合にはこの限りではありません: \*(lq,\*(rq, \fB{\fP, \fB?\fP, \fB:\fP,
+\fB&&\fP, \fB||\fP 。 \fBdo\fP または \fBelse\fP で終わる行は、ステートメントが自動的に以降 の行へ継続されます。また、改行の直前に
+\*(lq\e\*(rq を置くことで、 行を継続することができます。この場合、その改行は無視されます。
+.PP
+\*(lq;\*(rq で区切ることにより、1行に複数のステートメントを記述することができます。 (通常のように)
+パターン\-アクション対中のアクション部におけるステートメントだけではなく、パターン\-アクション対ステートメント自身も、 \*(lq;\*(rq
+で区切って複数置くことができます。
+.SS パターン
+\*(AK のパターンは、以下のうちのいずれかです。
+.PP
+.RS
+.nf
+\fBBEGIN\fP
+\fBEND\fP
+\fB/\fP\fIregular expression\fP\fB/\fP
+\fIrelational expression\fP
+\fIpattern\fP\fB && \fP\fIpattern\fP
+\fIpattern\fP\fB || \fP\fIpattern\fP
+\fIpattern\fP\fB ? \fP\fIpattern\fP\fB : \fP\fIpattern\fP
+\fB(\fP\fIpattern\fP\fB)\fP
+\fB!\fP\fI pattern\fP
+\fIpattern1\fP\fB, \fP\fIpattern2\fP
+.fi
+.RE
+.PP
+\fBBEGIN\fP と \fBEND\fP は特殊なパターンであり、入力と比較されることはありません。すべての \fBBEGIN\fP
+パターンに対応したアクション部は結合され、 そのようなすべてのアクション部が単一の \fBBEGIN\fP ブロック中にあるかのように扱われます。
+結合されたアクションは、 すべての入力ファイルの読み込みに先立って実行されます。同様にすべての \fBEND\fP
+ブロックは結合され、すべての入力ファイルの処理後 (あるいは、exit ステートメント が実行されたとき) に実行されます。 \fBBEGIN\fP と
+\fBEND\fP はパターン式内で他のパターンと混ぜて使うことはできません。また、 \fBBEGIN\fP と \fBEND\fP
+パターンはアクション部を省略することができません。
+.PP
+\fB/\fP\fIregular expression\fP\fB/\fP パターンでは、正規表現 (regular expression)
+にマッチした入力レコードに対してアクション が実行されます。正規表現は \fIegrep\fP(1)  と同じものが使えます。あとに要約を示します。
+.PP
+\fI関係式(relational expression)\fP では、後述のアクションについての節で示す演算子を用いることが できます。
+これらは概して、特定のフィールドが正規表現にマッチするかどうかを 調べるために用いられます。
+.PP
+演算子 \fB&&\fP, \fB||\fP, \fB!\fP は、それぞれ C 言語での論理AND、論理OR、論理NOT と等価です。 C
+言語と同様に、評価値が確定した時点で以降の評価を打ち切ります。 これらは複数のパターン式を結合するために使用されます。
+他のプログラミング言語と同様、括弧によって評価順序を変更することができます。
+.PP
+\fB?\^:\fP 演算子は C 言語のものと同様です。もし、最初のパターンが真なら、 テストのために 2 番目のパターンが用いられ、そうでなければ 3
+番目のパターンが 用いられます。2 番目と 3 番目のパターンのどちらかだけが評価されます。
+.PP
+\fIpattern1\fP\fB, \fP\fIpattern2\fP 形式は \fI範囲パターン\fP と呼ばれます。範囲パターンは、 \fIpattern1\fP
+にマッチするレコードから、 \fIpattern2\fP にマッチするレコードまでのすべてにマッチします。
+この形式は、他のパターン式と混合して用いることはできません。
+.SS 正規表現
+awk の正規表現は \fIegrep\fP のものと同様に、拡張された正規表現です。 以下の構成要素から成り立っています。
+.TP  \w'\fB[^\fIabc.\|.\|.\fB]\fR'u+2n
+\fIc\fP
+メタ文字ではない \fIc\fP にマッチします。
+.TP 
+\fI\ec\fP
+リテラル文字 \fIc\fP にマッチします。
+.TP 
+\&\fB.\fP
+改行を \fI含む\fP 任意の 1 文字にマッチします。
+.TP 
+\fB^\fP
+文字列の先頭にマッチします。
+.TP 
+\fB$\fP
+文字列の終端にマッチします。
+.TP 
+\fB[\fP\fIabc.\|.\|.\fP\fB]\fP
+文字リストであり、 \fIabc.\|.\|.\fP のいずれか 1 文字にマッチします。
+.TP 
+\fB[^\fP\fIabc.\|.\|.\fP\fB]\fP
+文字リストの逆であり、 \fIabc.\|.\|.\fP 以外の 1 文字にマッチします。
+.TP 
+\fIr1\fP\fB|\fP\fIr2\fP
+選言: \fIr1\fP または \fIr2\fP にマッチします。
+.TP 
+\fIr1r2\fP
+結合: \fIr1\fP の直後に \fIr2\fP が続くものにマッチします。
+.TP 
+\fIr\fP\fB+\fP
+\fIr\fP の 1 回以上の繰り返しにマッチします。
+.TP 
+\fIr\fP\fB*\fP
+\fIr\fP の 0 回以上の繰り返しにマッチします。
+.TP 
+\fIr\fP\fB?\fP
+\fIr\fP の 0 回または 1 回の繰り返しにマッチします。
+.TP 
+\fB(\fP\fIr\fP\fB)\fP
+グループ化: \fIr\fP にマッチします。
+.TP 
+.PD 0
+\fIr\fP\fB{\fP\fIn\fP\fB}\fP
+.TP 
+.PD 0
+\fIr\fP\fB{\fP\fIn\fP\fB,}\fP
+.TP 
+.PD
+\fIr\fP\fB{\fP\fIn\fP\fB,\fP\fIm\fP\fB}\fP
+ブレース中に 1 つか 2 つの数値を記述することにより、 \fIインターバル表現\fP を表します。ブレース中に数値が 1 つある場合、直前の正規表現
+\fIr\fP が \fIn\fP 回繰り返されます。2 つの数値がコンマで区切られている場合、 \fIr\fP は \fIn\fP 回から \fIm\fP 回繰り返されます。1
+つの数値に続いてコンマがある場合、 \fIr\fP は少なくとも \fIn\fP 回繰り返されます。
+.sp .5
+インターバル表現は \fB\-\^\-posix\fP または \fB\-\^\-re\-interval\fP がコマンドラインにて指定されているときのみ利用可能です。
+.TP 
+\fB\ey\fP
+語の先頭または末尾の空文字列にマッチします。
+.TP 
+\fB\eB\fP
+語の中の空文字列にマッチします。
+.TP 
+\fB\e<\fP
+語の先頭の空文字列にマッチします。
+.TP 
+\fB\e>\fP
+語の末尾の空文字列にマッチします。
+.TP 
+\fB\ew\fP
+語を構成する文字 (レター、数値、アンダスコア) にマッチします。
+.TP 
+\fB\eW\fP
+語を構成する文字以外の文字にマッチします。
+.TP 
+\fB\e`\fP
+バッファ (文字列) の先頭の空文字列にマッチします。
+.TP 
+\fB\e'\fP
+バッファの末尾の空文字列にマッチします。
+.PP
+文字列定数中で用いることができるエスケープシーケンス (後述参照) は、 正規表現中でも使用することができます。
+.PP
+\fI文字クラス\fP は \*(PX 標準で導入された新機能です。 文字クラスは特定の属性を持つ文字列リストの特殊表現ですが、
+実際の文字集合自身は国や文字集合によって様々なものとなります。 例えば、アルファベット文字はアメリカ合州国とフランスとでは異なります。
+.PP
+文字クラスが有効なのは、 文字リストのブラケットの中の正規表現だけです。 文字クラスは、 \fB[:\fP と、クラスを表現するキーワードと、 \fB:]\fP
+で構成されます。 以下に \*(PX 表現で定義される文字クラスを示します。
+.TP 
+\fB[:alnum:]\fP
+アルファベットと数値文字。
+.TP 
+\fB[:alpha:]\fP
+アルファベット文字。
+.TP 
+\fB[:blank:]\fP
+空白とタブ文字。
+.TP 
+\fB[:cntrl:]\fP
+制御文字。
+.TP 
+\fB[:digit:]\fP
+数値文字。
+.TP 
+\fB[:graph:]\fP
+印字可能で可視な文字。 (空白は印字可能ですが見えません。一方 \fBa\fP は印字可能かつ可視です。)
+.TP 
+\fB[:lower:]\fP
+アルファベット文字の小文字。
+.TP 
+\fB[:print:]\fP
+印字可能な文字 (制御文字以外)。
+.TP 
+\fB[:punct:]\fP
+句読点文字 (レター、数値、制御文字、空白文字のいずれでもない文字)。
+.TP 
+\fB[:space:]\fP
+空白文字 (空白、タブ、フォームフィード等の少数の文字を指す)。
+.TP 
+\fB[:upper:]\fP
+アルファベット文字の大文字。
+.TP 
+\fB[:xdigit:]\fP
+16 進数の数値。
+.PP
+例えば、\*(PX 標準以前では、アルファベットと数値の文字にマッチするためには、 \fB/[A\-Za\-z0\-9]/\fP
+と書きました。しかし、別のアルファベット文字が文字集合に含まれる場合、 それらにはマッチしません。 \*(PX 文字クラスでは、
+\fB/[[:alnum:]]/\fP と記述することができ、文字集合の \fIすべて\fP のアルファベットと数値にマッチします。
+.PP
+文字リスト中には、更に 2 つの特殊シーケンスを使用できます。 これらは、 複数の文字によって表現される単一シンボル ( \fI照合文字\fP と呼ばれます)
+を持ち、 複数の文字が \fI参照\fP やソートにおいては等価であるとされる、非 ASCII 文字集合に適用されます。 (例えば、フランス語では単なる
+\*(lqe\*(rq とグレーブアクセント付きの e\` とでは 等価です。)
+.TP 
+照合シンボル
+参照シンボルは複数文字の参照要素であり、 \fB[.\fP と \fB.]\fP で括ります。 例えば、 \fBch\fP が参照要素の場合、 \fB[[.ch.]]\fP
+は正規表現となり、この参照要素にマッチします。 一方、 \fB[ch]\fP は \fBc\fP か \fBh\fP にマッチする正規表現です。
+.TP 
+等価クラス
+等価クラスは 等価な文字リストを指すロケール固有の名前です。名前は \fB[=\fP と \fB=]\fP で括ります。 例えば、名前 \fBe\fP は \*(lqe,\*(rq
+\*(lqe\`,\*(rq, \*(lqe\`.\*(rq のすべてを表現するために使用されるかもしれません。 この場合、 \fB[[=e=]]\fP は \fBe\fP,
+\fBe\'\fP, \fBe\`\fP のいずれかにマッチする正規表現となります。
+.PP
+これらの機能は英語以外のロケールにて非常に有用です。 \fIgawk\fP が正規表現のマッチングに使用するライブラリ関数は、 現在 \*(PX
+文字クラスのみを理解し、 参照シンボルと等価クラスは理解しません。
+.PP
+\fB\ey\fP, \fB\eB\fP, \fB\e<\fP, \fB\e>\fP, \fB\ew\fP, \fB\eW\fP, \fB\e`\fP, \fB\e'\fP の演算子は
+\fIgawk\fP 固有であり、\*(GN 正規表現ライブラリの機能を元にした拡張です。
+.PP
+様々なコマンドラインオプションによって、正規表現中の文字を \fIgawk\fP がどのように解釈するのかを制御できます。
+.TP 
+オプション無し
+デフォルトでは、 \fIgawk\fP は上述の \*(PX 正規表現および \*(GN 正規表現のすべての機能を提供します。
+しかしながら、インターバル表現はサポートされません。
+.TP 
+\fB\-\^\-posix\fP
+\*(PX 正規表現のみがサポートされ、\*(GN 演算子はサポートされません (例えば、 \fB\ew\fP はリテラル \fBw\fP にマッチします)。
+インターバル表現は許されます。
+.TP 
+\fB\-\^\-traditional\fP
+伝統的な Unix \fIawk\fP の正規表現がサポートされます。\*(GN 演算子、インターバル表現、 \*(PX 文字クラス (
+\fB[[:alnum:]]\fP など) はサポートされません。 8 進または 16 進のエスケープシーケンスで表現される文字は、
+正規表現のメタ文字を表現するとしても、 リテラルとして扱われます。
+.TP 
+\fB\-\^\-re\-interval\fP
+\fB\-\^\-traditional\fP が指定されていたとしても、正規表現中でインターバル表現をサポートします。
+.SS アクション
+アクションは、ブレース \fB{\fP と \fB}\fP で囲みます。アクションは通常の代入、条件文、 ループ文等からなります。演算子、制御文、入出力文は C
+言語とほぼ同様です。
+.SS 演算子
+.PP
+\*(AK での演算子を、優先順位の高いものから順に示します。
+.PP
+.TP  "\w'\fB*= /= %= ^=\fR'u+1n"
+\fB(\fP\&.\|.\|.\fB)\fP
+グループ化。
+.TP 
+\fB$\fP
+フィールド参照。
+.TP 
+\fB++ \-\^\-\fP
+インクリメント、デクリメント。前置も後置も可能。
+.TP 
+\fB^\fP
+べき乗 (\fB**\fP も同様の意味で使用できる。また \fB**=\fP 代入演算子も存在する)。
+.TP 
+\fB+ \- !\fP
+単項のプラス、マイナス、論理否定。
+.TP 
+\fB* / %\fP
+乗算、除算、剰余。
+.TP 
+\fB+ \-\fP
+加算と減算。
+.TP 
+\fI空白\fP
+文字列結合。
+.TP 
+.PD 0
+\fB< >\fP
+.TP 
+.PD 0
+\fB<= >=\fP
+.TP 
+.PD
+\fB!= ==\fP
+通常の関係演算子。
+.TP 
+\fB~ !~\fP
+正規表現マッチ、否定のマッチ。 \fB注意:\fP \fB~\fP と \fB!~\fP の左辺に正規表現定数 (\fB/foo/\fP等)
+を用いてはいけません。正規表現定数は右辺にのみ置くことができます。式 \fB/foo/ ~ \fP\fIexp\fP は \fB(($0 ~ /foo/) ~
+\fP\fIexp\fP\fB)\fP と等価であり、 これは通常意図するものとは異なります。
+.TP 
+\fBin\fP
+配列のメンバ。
+.TP 
+\fB&&\fP
+論理 AND。
+.TP 
+\fB||\fP
+論理 OR。
+.TP 
+\fB?:\fP
+C 言語の条件式と同様です。 \fIexpr1\fP\fB ? \fP\fIexpr2\fP\fB : \fP\fIexpr3\fPの形式で使います。もし \fIexpr1\fP
+が真なら式の値は \fIexpr2\fP になり、そうでなければ \fIexpr3\fP になります。 \fIexpr2\fP か \fIexpr3\fP
+のうち片方のみが評価されます。
+.TP 
+.PD 0
+\fB= += \-=\fP
+.TP 
+.PD
+\fB*= /= %= ^=\fP
+代入。絶対代入 \fB(\fP\fIvar\fP\fB = \fP\fIvalue\fP\fB)\fP と演算子代入 (他の形式) がサポートされています。
+.SS 制御ステートメント
+.PP
+制御ステートメントは以下のとおりです。
+.PP
+.RS
+.nf
+\fBif (\fP\fIcondition\fP\fB) \fP\fIstatement\fP [ \fBelse\fP\fI statement \fP]
+\fBwhile (\fP\fIcondition\fP\fB) \fP\fIstatement \fP
+\fBdo \fP\fIstatement \fP\fBwhile (\fP\fIcondition\fP\fB)\fP
+\fBfor (\fP\fIexpr1\fP\fB; \fP\fIexpr2\fP\fB; \fP\fIexpr3\fP\fB) \fP\fIstatement\fP
+\fBfor (\fP\fIvar \fP\fBin\fP\fI array\fP\fB) \fP\fIstatement\fP
+\fBbreak\fP
+\fBcontinue\fP
+\fBdelete \fP\fIarray\|\fP\fB[\|\fP\fIindex\|\fP\fB]\fP
+\fBdelete \fP\fIarray\|\fP
+\fBexit\fP [ \fIexpression\fP ]
+\fB{ \fP\fIstatements \fP\fB}\fP
+.fi
+.RE
+.SS 入出力ステートメント
+.PP
+入出力ステートメントは以下のとおりです。
+.PP
+.TP  "\w'\fBprintf \fIfmt, expr-list\fR'u+1n"
+\fBclose(\fP\fIfile\fP\fB)\fP
+ファイル (またはパイプ、下記参照) をクローズします。
+.TP 
+\fBgetline\fP
+次のレコードを \fB$0\fP に読み込みます。 \fBNF\fP, \fBNR\fP, \fBFNR\fP が設定されます。
+.TP 
+\fBgetline <\fP\fIfile\fP
+ファイル \fIfile\fP から次のレコードを \fB$0\fP に読み込みます。 \fBNF\fP が設定されます。
+.TP 
+\fBgetline\fP\fI var\fP
+次のレコードを変数 \fIvar\fP に読み込みます。 \fBNR\fP, \fBFNR\fP が設定されます。
+.TP 
+\fBgetline\fP\fI var\fP\fB <\fP\fIfile\fP
+ファイル \fIfile\fP から次のレコードを変数 \fIvar\fP に読み込みます。
+.TP 
+\fBnext\fP
+現在のレコードに対する処理を終了し、次のレコードを読み込み、\*(AK プログ ラムの最初のパターンから処理を開始します。 C 言語の continue
+と類似した意味を持ちます。 もし、入力データの終端に達した場合、 \fBEND\fP ブロックが存在すれば実行されます。
+.TP 
+\fBnextfile\fP
+現在の入力ファイルに対する処理を終了し、次の入力ファイルからレコードを 読み込みます。 \fBFILENAME\fP と \fBARGIND\fP が更新され、
+\fBFNR\fP が 1 にリセットされ、\*(AK プログラムの 最初のパターンから処理が開始されます。入力データの終端に達したときは、 もし存在すれば、
+\fBEND\fP ブロックが実行されます。 \fB注:\fP 以前のバージョンの gawk では \fBnext file\fP と 2
+語で使用されていました。この用法はまだ認識されますが、 警告メッセージを生じさせますし、最終的には無くなる表現です。
+.TP 
+\fBprint\fP
+現在のレコードを出力します。 出力レコードは \fBORS\fP 変数の値にて終端されます。
+.TP 
+\fBprint\fP\fI expr\-list\fP
+式を出力します。各式は \fBOFS\fP の値で区切られます。出力されるレコードの最後に は \fBORS\fP の値が付加されます。
+.TP 
+\fBprint\fP\fI expr\-list\fP\fB >\fP\fIfile\fP
+式をファイル \fIfile\fP に出力します。各式は \fBOFS\fP の値で区切られます。出力されるレコードの 最後には \fBORS\fP の値が付加されます。
+.TP 
+\fBprintf\fP\fI fmt, expr\-list\fP
+書式付き出力です。
+.TP 
+\fBprintf\fP\fI fmt, expr\-list\fP\fB >\fP\fIfile\fP
+ファイル \fIfile\fP への書式付き出力です。
+.TP 
+\fBsystem(\fP\fIcmd\-line\fP\fB)\fP
+コマンド \fIcmd\-line\fP を実行し、終了ステータスを返します (\*(PX に対応しない システムでは使用できない場合があります)。
+.TP 
+\&\fBfflush(\fP[\fIfile\|\fP]\fB)\fP
+オープンされている出力ファイルまたはパイプ \fIfile\fP に関連づけられているバッファをフラッシュします。 \fIfile\fP
+を指定しないと、標準出力がフラッシュされます。 \fIfile\fP が空文字列の場合、オープンされているすべてのファイルとパイプのバッファを
+フラッシュします。
+.PP
+その他の形式のリダイレクトとして以下のものが利用可能です。 \fBprint\fP と \fBprintf\fP に対して、 \fB>>\fP\fI
+file\fP を指定すると出力はファイル \fIfile\fP に追加され、 \fB|\fP\fI command\fP は出力をパイプに対して行います。同様に、
+\fIcommand\fP\fB| getline\fP はコマンドの出力から \fBgetline\fP を行ないます。 \fBgetline\fP はファイル終端では 0
+を、エラー時には \-1 を返します。
+.PP
+注: ループ中で \fBgetline\fP へパイプ書き込みする場合または \fBprint\fP か \fBprintf\fP からパイプ読み取りする場合、
+コマンドの新インスタンスを作成するために \fBclose()\fP を使用することが必要です。 パイプが EOF を返すときでも、AWK
+は自動的にはパイプを閉じません。
+.SS "\fIprintf\fP\| ステートメント"
+.PP
+\*(AK での \fBprintf\fP ステートメントと \fBsprintf()\fP 関数 (後述参照) は、以下の変換指定書式を受け付けます。
+.TP 
+\fB%c\fP
+1 つの \s-1ASCII\s+1 文字。 \fB%c\fP に対応する引数が数値なら、その値を \s-1ASCII\s+1 コードとみなし
+て文字に変換します。そうでなければ、引数は文字列であると解釈され、その 1 文字目が出力されます。
+.TP 
+.PD 0
+\fB%d\fP
+.TP 
+.PD
+\fB%i\fP
+10 進数 (整数部分)。
+.TP 
+.PD 0
+\fB%e\fP
+.TP 
+.PD
+\fB%E\fP
+\fB[\-]d.dddddde[+\-]dd\fP という形式の浮動小数点数。 \fB%E\fP 形式では \fBe\fP の代りに \fBE\fP が使用されます。
+.TP 
+\fB%f\fP
+\fB[\-]ddd.dddddd\fP という形式の浮動小数点数。
+.TP 
+.PD 0
+\fB%g\fP
+.TP 
+.PD
+\fB%G\fP
+\fB%e\fP と \fB%f\fP の短い方の形式の浮動小数点数。余計な 0 は省略されます。 \fB%G\fP 形式では \fB%e\fP の代りに \fB%E\fP
+を使用します。
+.TP 
+\fB%o\fP
+符号なしの 8 進数 (整数)。
+.TP 
+.PD
+\fB%u\fP
+符号なしの 10 進数 (整数)。
+.TP 
+\fB%s\fP
+文字列。
+.TP 
+.PD 0
+\fB%x\fP
+.TP 
+.PD
+\fB%X\fP
+符号なしの 16 進数 (整数)。 \fB%X\fP 形式では、 \fBabcdef\fP の代りに \fBABCDEF\fP を用います。
+.TP 
+\fB%%\fP
+単一の文字 \fB%\fP 。引数は使用しません。
+.PP
+\fB%\fP と上記の制御文字との間にオプショナルな追加のパラメータを置く ことができます。以下にそれらを示します。
+.TP 
+\fB\-\fP
+左寄せ。
+.TP 
+\fI空白\fP
+数値変換において、正の値のプレフィックスは空白となり、 負の値のプレフィックスはマイナス記号となります。
+.TP 
+\fB+\fP
+プラス記号は幅修正子 (後述) の前に使用し、 整形されるデータが正であったとしても、 数値変換に対して常に符号を付けることを指示します。 \fB+\fP
+は空白修正子に優先します。
+.TP 
+\fB#\fP
+ある制御レターに対して「別の形式」を使用します。 \fB%o\fP に対しては先行する 0 を与え、 \fB%x\fP と \fB%X\fP に対しては非 0
+の結果に対して先行する \fB0x\fP と \fB0X\fP を与えます。 \fB%e\fP, \fB%E\fP, \fB%f\fP に対しては結果に常に小数点を含めます。
+\fB%g\fP, \fB%G\fP に対しては結果の末尾から 0 を取り除きません。
+.TP 
+\fB0\fP
+先頭の \fB0\fP (ゼロ) はフラグとして動作し、 出力を空白ではなく 0 でパディングすることを示します。
+これは非数値の出力書式に対しても適用されます。 このフラグが有効なのは、フィールド幅が印字される値の幅より広いときだけです。
+.TP 
+\fIwidth\fP
+フィールドが指定した幅 \fIwidth\fP になるようにパディングされます。フィールドは通常空白でパディングされます。 \fB0\fP
+フラグが使用された場合には 0 でパディングされます。
+.TP 
+\&\fB.\fP\fIprec\fP
+印字において使用する精度を数値で指定します。 \fB%e\fP, \fB%E\fP, \fB%f\fP の書式に対しては、小数点の右側に印字される数字の数を指定します。
+\fB%g\fP, \fB%G\fP の書式に対しては、仮数部の最大数を指定します。 \fB%d\fP, \fB%o\fP, \fB%i\fP, \fB%u\fP, \fB%x\fP,
+\fB%X\fP の書式に対しては、印字される数字の最小数を指定します。 文字列に対しては、印字される文字列からとりだされる最大の文字数を指定します。
+.PP
+\*(AN C の \fBprintf()\fP の動的な幅 \fIwidth\fP と精度 \fIprec\fP の指定機能が使用できます。 \fB幅\fP または
+\fB精度\fP の指定部分に \fB*\fP を指定することで、その値を \fBprintf\fP または \fBsprintf()\fP への引数で指定できます。
+.SS 特殊ファイル名
+.PP
+\fBprint\fP や \fBprintf\fP で書き込みときでも、 \fBgetline\fP でファイルから読み取るときでも、 入出力リダイレクトを行う場合、
+\fIgawk\fP は内部的な特殊なファイル名を解釈します。 これらのファイル名により、親プロセス (通常はシェルです) から受け継いだ
+オープン状態のファイルディスクリプタを用いて入出力を行ったり、実行中の \fIgawk\fP プロセスに関する情報を得ることができます。
+特殊ファイル名は以下のとおりです。
+.TP  \w'\fB/dev/stdout\fR'u+1n
+\fB/dev/pid\fP
+現在のプロセスのプロセスID (10 進数で、最後に改行が付きます) を 読み込むことができます。
+.TP 
+\fB/dev/ppid\fP
+現在のプロセスの親のプロセスのプロセスID (10 進数で、最後に改行が付きます) を 読み込むことができます。
+.TP 
+\fB/dev/pgrpid\fP
+現在のプロセスのプロセスグループ ID (10 進数で、最後に改行が付きます)  を読み込むことができます。
+.TP 
+\fB/dev/user\fP
+このファイルを読むことで、改行で終わる単一のレコードが得られます。 各フィールドは空白で区切られています。 \fB$1\fP は \fIgetuid\fP(2)
+システムコールの値、 \fB$2\fP は \fIgeteuid\fP(2)  システムコールの値、 \fB$3\fP は \fIgetgid\fP(2)
+システムコールの値、 \fB$4\fP は \fIgetegid\fP(2)  システムコールの値です。もし、さらにフィールドがあれば、 それは
+\fIgetgroups\fP(2)  システムコールが返すグループ ID のリストです。
+全てのシステムで複数のグループがサポートされているわけではありません。
+.TP 
+\fB/dev/stdin\fP
+標準入力。
+.TP 
+\fB/dev/stdout\fP
+標準出力。
+.TP 
+\fB/dev/stderr\fP
+標準エラー出力。
+.TP 
+\fB/dev/fd/\|\fP\fIn\fP
+オープンされたファイルディスクリプタ \fIn\fP に対応しているファイル。
+.PP
+エラーメッセージを出力するには、以下の方法が便利です。
+.PP
+.RS
+\fBprint "You blew it!" > "/dev/stderr"\fP
+.RE
+.PP
+もしこの機能が無かったら、次のようにするしかないところです。
+.PP
+.RS
+\fBprint "You blew it!" | "cat 1>&2"\fP
+.RE
+.PP
+これらのファイル名は、コマンドラインのデータファイル指定で使うこともできます。
+.SS 数値関数
+.PP
+\*(AK は以下の定義済み数値関数を持っています。
+.PP
+.TP  \w'\fBsrand(\fR[\fIexpr\^\fR]\fB)\fR'u+1n
+\fBatan2(\fP\fIy\fP\fB,\fP\fI x\fP\fB)\fP
+\fIy/x\fP の逆正接をラジアンで与えます。
+.TP 
+\fBcos(\fP\fIexpr\fP\fB)\fP
+\fIexpr\fP の余弦をラジアンで与えます。
+.TP 
+\fBexp(\fP\fIexpr\fP\fB)\fP
+指数関数。
+.TP 
+\fBint(\fP\fIexpr\fP\fB)\fP
+整数への切捨て。
+.TP 
+\fBlog(\fP\fIexpr\fP\fB)\fP
+自然対数。
+.TP 
+\fBrand()\fP
+0 から 1 の間の乱数を与えます。
+.TP 
+\fBsin(\fP\fIexpr\fP\fB)\fP
+\fIexpr\fP の正弦をラジアンで与えます。
+.TP 
+\fBsqrt(\fP\fIexpr\fP\fB)\fP
+平方根。
+.TP 
+\&\fBsrand(\fP[\fIexpr\|\fP]\fB)\fP
+\fIexpr\fP の値を乱数生成関数の種として用います。式が指定されなかった場合は、 時刻が用いられます。直前の種の値を返します。
+.SS 文字列関数
+.PP
+\fIgawk\fP は以下の定義済み文字列関数を持っています。
+.PP
+.TP  "\w'\fBsprintf(\^\fIfmt\fB\^, \fIexpr-list\^\fB)\fR'u+1n"
+\fBgensub(\fP\fIr\fP\fB, \fP\fIs\fP\fB, \fP\fIh \fP[\fB, \fP\fIt\fP]\fB)\fP
+対象文字列 \fIt\fP から正規表現 \fIr\fP のマッチを探します。 \fIh\fP が \fBg\fP または \fBG\fP で開始する文字列の場合、マッチする
+\fIr\fP をすべて \fIs\fP に置き換えます。 そうでない場合、 \fIh\fP は何番目の \fIr\fP のマッチを置き換えるのかを示します。 \fIt\fP
+が与えられない場合、代りに \fB$0\fP が使用されます。 置換テキスト \fIs\fP では、シーケンス \fB\e\fP\fIn\fP ただし \fIn\fP は 1 から
+9 までの数字を使用して、 \fIn\fP 番目にマッチした括弧付きサブ式を示すことができます。 シーケンス \fB\e0\fP は文字 \fB&\fP
+と同様、マッチしたテキスト全体を表します。 \fBsub()\fP や \fBgsub()\fP とは異なり、修正された文字列が関数の結果として返され、
+元の対象テキストは変更され \fIません\fP 。
+.TP  "\w'\fBsprintf(\^\fIfmt\fB\^, \fIexpr-list\^\fB)\fR'u+1n"
+\fBgsub(\fP\fIr\fP\fB, \fP\fIs \fP[\fB, \fP\fIt\fP]\fB)\fP
+文字列 \fIt\fP 中で正規表現 \fIr\fP にマッチした部分をすべて \fIs\fP に置換します。置換の個数を返します。 \fIt\fP を指定しなかった場合は
+\fB$0\fP が用いられます。 置換テキストでは、 \fB&\fP は実際にマッチしたテキストで置き換えられます。 \fB\e&\fP を使用するとリテラルの
+\fB&\fP を得ることができます。 \fBsub()\fP, \fBgsub()\fP, \fBgensub()\fP における \fB&\fP
+とバックスラッシュに関する完全な議論は \fIEffective AWK Language Programming\fP を参照してください。
+.TP 
+\fBindex(\fP\fIs\fP\fB,\fP\fI t\fP\fB)\fP
+文字列 \fIs\fP 中に含まれる文字列 \fIt\fP の位置を返します。 \fIt\fP が含まれていない場合は 0 を返します。
+.TP 
+\fBlength(\fP[\fIs\fP]\fB)\fP
+文字列 \fIs\fP の長さを返します。 \fIs を指定しなかった場合には\fP \fB$0\fP の長さを返します。
+.TP 
+\fBmatch(\fP\fIs\fP\fB,\fP\fI r\fP\fB)\fP
+文字列 \fIs\fP 中で正規表現 \fIr\fP にマッチする位置を返します。マッチしない場合は 0 を 返します。 \fBRSTART\fP と
+\fBRLENGTH\fP の値が設定されます。
+.TP 
+\fBsplit(\fP\fIs\fP\fB, \fP\fIa \fP[\fB, \fP\fIr\fP]\fB)\fP
+文字列 \fIs\fP を正規表現 \fIr\fP を用いて分割し、配列 \fIa\fP に格納します。 フィールド数を返します。 \fIr\fP が省略され た場合は
+\fBFS\fP が用いられます。配列 \fIa\fP の内容は、分割前にクリアされます。 分割は、上述のフィールド分割と同じ動作を行います。
+.TP 
+\fBsprintf(\fP\fIfmt\fP\fB,\fP\fI expr\-list\fP\fB)\fP
+書式 \fIfmt\fP に従って \fIexp\-list\fP を整形表示し、結果の文字列を返します。
+.TP 
+\fBsub(\fP\fIr\fP\fB, \fP\fIs \fP[\fB, \fP\fIt\fP]\fB)\fP
+\fBgsub()\fP と似ていますが、最初にマッチした文字列のみが置換されます。
+.TP 
+\fBsubstr(\fP\fIs\fP\fB, \fP\fIi \fP[\fB, \fP\fIn\fP]\fB)\fP
+文字列 \fIs\fP の \fIi\fP 文字目から始まる最大 \fIn\fP 文字の部分文字列を返します。 \fIn\fP が省略された場合、 \fIi\fP
+文字目以降の部分文字列が返されます。
+.TP 
+\fBtolower(\fP\fIstr\fP\fB)\fP
+文字列 \fIstr\fP をコピーし、大文字をすべて小文字に変換したものを返します。 アルファベットでない文字は変化しません。
+.TP 
+\fBtoupper(\fP\fIstr\fP\fB)\fP
+文字列 \fIstr\fP をコピーし、小文字をすべて大文字に変換したものを返します。 アルファベットでない文字は変化しません。
+.SS 時間関数
+.PP
+タイムスタンプを含んだログファイルの処理は \*(AK プログラムの主な使い道の1つですから、 \fIgawk\fP
+はタイムスタンプを取り出したり、フォーマット するための 2 つの関数を提供します。
+.PP
+.TP  "\w'\fBsystime()\fR'u+1n"
+\fBsystime()\fP
+基準時点からの経過秒数を返します (\*(PX システムでは、基準時点は UTC で 1970 年 1 月 1 日 0:00 です)。
+.TP 
+\fBstrftime(\fP[\fIformat \fP[\fB, \fP\fItimestamp\fP]]\fB)\fP
+書式 \fIformat\fP に従って \fItimestamp\fP をフォーマットします。 \fItimestamp\fP は \fBsystime()\fP
+が返す値と同じ形式でなければなりません。 \fItimestamp\fP が省略された場合、現在の日付が使用されます。 \fIformat\fP が省略された場合、
+\fIdate\fP(1)  が出力に使用するものと同じデフォルトフォーマットが使用されます。 利用可能なフォーマットについては、\*(AN C の
+\fBstrftime()\fP 関数の仕様を参照して下さい。パブリックドメインな \fIstrftime\fP(3)  とそのマニュアルページが \fIgawk\fP
+とともに配布されています。もし、 \fIgawk\fP を作成するためにその \fBstrftime\fP を用いた場合は、そのマニュアルに記述されている変換書式が
+\fIgawk\fP でも利用可能です。
+.SS 文字列定数
+.PP
+\*(AK での文字列定数は、ダブルクォート (\fB"\fP) に狭まれた文字の列です。 文字列内では、C 言語のようにいくつかの
+\fIエスケープシーケンス\fP が使えます。
+.PP
+.TP  \w'\fB\e\^\fIddd\fR'u+1n
+\fB\e\e\fP
+バックスラッシュそのもの。
+.TP 
+\fB\ea\fP
+「警告」文字。通常は \s-1ASCII\s+1 \s-1BEL\s+1 文字です。
+.TP 
+\fB\eb\fP
+バックスペース。
+.TP 
+\fB\ef\fP
+改ページ (フォームフィード)。
+.TP 
+\fB\en\fP
+改行。
+.TP 
+\fB\er\fP
+復帰 (キャリッジリターン)。
+.TP 
+\fB\et\fP
+水平タブ。
+.TP 
+\fB\ev\fP
+垂直タブ。
+.TP 
+\fB\ex\fP\fI\|hex digits\fP
+\fB\ex\fP に続く 16 進数で表現された文字。\*(AN C と同様に、 \fB\ex\fP に続くすべての 16 進数字
+はエスケープシーケンスの一部であるとみなされます。 (この機能によりコミッティによる言語デザインが分かります。)  例えば、\fB"\ex1B"\fP は
+\s-1ASCII\s+1 \s-1ESC\s+1 (エスケープ) 文字です。
+.TP 
+\fB\e\fP\fIddd\fP
+1 桁か 2 桁か 3 桁の 8 進数で表現された文字。例えば、 \fB"\e033"\fP は \s-1ASCII\s+1 \s-1ESC\s+1
+(エスケープ) 文字です。
+.TP 
+\fB\e\fP\fIc\fP
+文字 c そのもの。
+.PP
+エスケープシーケンスは正規表現定数内でも用いることができます (例えば、 \fB/[\ \et\ef\en\er\ev]/\fP は空白文字にマッチします)。
+.PP
+互換モードでは、8 進および 16 進のエスケープシーケンスで表現される文字は、 正規表現定数として使用された場合、リテラルとして扱われます。
+それゆえ、 \fB/a\e52b/\fP は \fB/a\e*b/\fP と等価です。
+.SH 関数
+\*(AK では関数を以下のようにして定義します。
+.PP
+.RS
+\fBfunction \fP\fIname\fP\fB(\fP\fIparameter list\fP\fB) { \fP\fIstatements \fP\fB}\fP
+.RE
+.PP
+関数は、パターンまたはアクションの式から呼び出されたときに実行されます。 関数呼び出しにおいて与えられた実引数が、関数宣言における仮引数に
+受け渡されます。 このとき配列の場合は参照渡しが行われ、他の変数の場合は値渡しで行われます。
+.PP
+元々 \*(AK に関数は備わっていませんでしたので、局所変数の機構はあまり スマートではありません。
+局所変数は引数リストの余分な引数として宣言します。局所変数と関 数引数を区別するため、余分な空白で区切るのが慣習です。例えば、以下のよ うにします。
+.PP
+.RS
+.nf
+\fBfunction  f(p, q,     a, b) # a & b は局所変数
+{
+       \&.\|.\|.
+}\fP
+
+\fB/abc/       { .\|.\|. ; f(1, 2) ; .\|.\|. }\fP
+.fi
+.RE
+.PP
+関数呼び出しにおける左括弧は、空白を狭まずに関数名の直後に 置かなければいけません。 これは、文字列結合演算子との曖昧さを生じさせないために必要です。
+この制限は、上述の組み込み関数にはあてはまりません。
+.PP
+関数は、他の関数を呼び出したり、自分自身を再帰的に呼び出すことができます。 局所変数として用いられる関数引数は、関数起動時に空文字列および 0
+に初期化されます。
+.PP
+関数から値を返すには \fBreturn\fP\fI expr\fP を使用してください。 値を指定しない場合、または関数の終りから \*(lq落ちる\*(rq (訳注:
+関数を閉じるブレースに到達する) ことにより関数から戻る場合、 値は未定義です。
+.PP
+\fB\-\^\-lint\fP が指定されたとき、 \fIgawk\fP は実行時ではなくパーズ時に未定義関数の呼び出しに関して警告します。
+実行時の未定義関数の呼び出しは致命的なエラーとなります。
+.PP
+\fBfunction\fP のかわりに \fBfunc\fP を用いることができます。
+.SH 例
+.nf
+\*(lq/etc/passwd\*(rq から全ユーザのログイン名を取り出し、ソートして出力します。
+
+\fB    BEGIN   { FS = ":" }
+               { print $1 | "sort" }\fP
+
+ファイルの行数を数える。
+
+\fB            { nlines++ }
+       END     { print nlines }\fP
+
+行番号をつける。
+
+\fB    { print FNR, $0 }\fP
+
+全ファイルを通した行番号をつける。
+
+\fB    { print NR, $0 }\fP
+.fi
+.SH 関連項目
+\fIegrep\fP(1), \fIgetpid\fP(2), \fIgetppid\fP(2), \fIgetpgrp\fP(2), \fIgetuid\fP(2),
+\fIgeteuid\fP(2), \fIgetgid\fP(2), \fIgetegid\fP(2), \fIgetgroups\fP(2)
+.PP
+\fIThe AWK Programming Language\fP, Alfred V. Aho, Brian W. Kernighan, Peter
+J. Weinberger, Addison\-Wesley, 1988. ISBN 0\-201\-07981\-X.
+.PP
+\fIEffective AWK Programming\fP, Edition 1.0, published by the Free Software
+Foundation, 1995.
+.SH "POSIX 互換"
+\fIgawk\fP は最新版の \*(UX \fIawk\fP との互換性だけでなく、\*(PX 標準との互換性も追求しています。 このため \fIgawk\fP
+には以下のような機能が取り入れられています。 これらの機能は \*(AK 本には述べられていませんが、 Bell Labs および \*(PX 標準の
+\fIawk\fP が有している機能です。
+.PP
+プログラム実行前に変数代入を行なう \fB\-v\fP オプションは新しい物です。 \*(AK 本によれば、コマンドラインで指定された変数代入は \fIawk\fP
+が引数をファイル名としてオープンする際に行なわれることになります。つまり これは \fBBEGIN\fP
+ブロックの実行後です。しかしながら初期の頃の実装では、引数の中でファイル名に 先立って変数代入が指定されている場合には、代入は \fBBEGIN\fP
+ブロック実行の \fI前に\fP 行われていました。そしてアプリケーションは、この「仕様」に依存する ようになりました。 \fIawk\fP
+がそのドキュメントに合うように直された時、昔の動作に依存している アプリケーションの便宜を図るためにこのオプションが加えられました。 (この仕様は
+AT&T および \*(GN の開発者達によって合意されました。)
+.PP
+独自機能のための \fB\-W\fP オプションは \*(PX 標準に従ったものです。
+.PP
+引数の列に特別なオプション \*(lq\-\^\-\*(rq を指定すると、 \fIgawk\fP はそこがオプションの終わりであると解釈します。
+互換モードにおいては未定義オプションは警告が出力され、それ以外のものは 無視されます。 通常の実行においては残りの引数は \*(AK
+プログラムに引き渡されます。
+.PP
+\*(AK 本は \fBsrand()\fP の返り値を定義していません。 \*(PX 標準 では、その関数が使っている種を返し、
+乱数シーケンスを追跡できるようにしています。 したがって \fIgawk\fP における \fBsrand()\fP も現在の種を返すようにしてあります。
+.PP
+その他にも以下のような新機能があります。 \fB\-f\fP オプションの複数回使用 (MKS \fIawk\fPに倣いました); \fBENVIRON\fP 配列;
+エスケープシーケンス \fB\ea\fP と \fB\ev\fP ( \fIgawk\fP で最初に実装され、AT&T の \fIawk\fP にフィードバックされました);
+組み込み関数 \fBtolower()\fP と \fBtoupper()\fP (AT&T に倣いました); \fBprintf\fP における \*(AN C
+変換指定 (AT&T 版で最初に実装されました)。
+.SH "GNU 拡張"
+\fIgawk\fP は \*(PX \fIawk\fP に対して多くの拡張が行なわれています。 この節ではそれらについて解説します。
+\fB\-\^\-traditional\fP オプション付きで \fIgawk\fP を起動することによって、
+ここで述べられている拡張機能をすべて禁止することができます。
+.PP
+\fIgawk\fP が持つ以下の機能は \*(PX \fIawk\fP では使用できません。
+.RS
+.TP  \w'\(bu'u+1n
+\(bu
+エスケープシーケンス \fB\ex\fP 。( \fB\-\^\-posix\fP で抑止できます。)
+.TP  \w'\(bu'u+1n
+\(bu
+\fBfflush()\fP 関数。( \fB\-\^\-posix\fP で抑止できます。)
+.TP 
+\(bu
+\fBsystime()\fP, \fBstrftime()\fP, \fBgensub()\fP の各関数。
+.TP 
+\(bu
+入出力リダイレクトで利用可能な特殊ファイル名は理解されません。
+.TP 
+\(bu
+変数 \fBARGIND\fP, \fBERRNO\fP, \fBRT\fP は特殊変数ではありません。
+.TP 
+\(bu
+変数 \fBIGNORECASE\fP とその副作用は利用できません。
+.TP 
+\(bu
+変数 \fBFIELDWIDTHS\fP と固定長フィールド分割。
+.TP 
+\(bu
+\fBRS\fP の正規表現としての使用。
+.TP 
+\(bu
+\fBFS\fP に空文字列を設定することにより各文字を切り出す能力と、 \fBsplit()\fP の 3 番目の引数。
+.TP 
+\(bu
+\fB\-f\fP オプションで指定されたファイル名についてパス検索を行わないこと。 よって、環境変数 \fBAWKPATH\fP は特殊な変数ではありません。
+.TP 
+\(bu
+現在の入力ファイルに対する処理を終わらせるために使用される \fBnextfile\fP 。
+.TP 
+\(bu
+配列全体を削除するために使用される \fBdelete\fP\fI 配列\fP 。
+.RE
+.PP
+\*(AK 本は関数 \fBclose()\fP の返り値を定義していません。 \fIgawk\fP の \fBclose()\fP
+は、ファイルやパイプをクローズする際に呼び出す \fIfclose\fP(3)  や \fIpclose\fP(3)、 からの返り値を返します。
+.PP
+オプション \fB\-\^\-traditional\fP 付きで \fIgawk\fP を起動し \fB\-F\fP オプションへの引数 \fIfs\fP として \*(lqt\*(rq
+を与えた場合に、 \fBFS\fP の値はタブ文字に設定されます。 \fBgawk \-F\et \&.\|.\|.\fP とタイプしても、シェルが単に \*(lqt\*(rq
+をクォートするので、\*(lq\et\*(rq は \fB\-F\fP オプションに渡されません。 これは少々見苦しい特殊事例ですので、デフォルトの動作としては
+採用されていません。 \fB\-\^\-posix\fP を指定した場合にも、この動作は行なわれません。 タブ文字をフィールドセパレータとして使用したい場合には、
+クォートを使用するのが最良です: \fBgawk \-F'\et' \&.\|.\|.\fP.
+.ig
+.PP
+If
+\fIgawk\fR
+was compiled for debugging, it will
+accept the following additional options:
+.TP
+.PD 0
+\fB\-Wparsedebug\fR
+.TP
+.PD
+\fB\-\^\-parsedebug\fR
+Turn on
+\fIyacc\fR(1)\fR
+or
+\fIbison\fR(1)\fR
+debugging output during program parsing.
+This option should only be of interest to the
+\fIgawk\fR
+maintainers, and may not even be compiled into
+\fIgawk\fR.\fR
+..
+.SH 歴史的機能
+\fIgawk\fP は歴代の \*(AK の実装にあった 2 つの機能を備えています。 1 つめとして、組み込み関数 \fBlength()\fP
+は引数無しで呼び出せるだけでなく、さらに括弧無しでも呼び出せます! したがって
+.RS
+.PP
+\fBa = length  # Holy Algol 60, Batman!\fP
+.RE
+.PP
+は以下の2例と同じです。
+.RS
+.PP
+\fBa = length()\fP
+.br
+\fBa = length($0)\fP
+.RE
+.PP
+\*(PX 標準ではこの機能は \*(lqdeprecated\*(rq と注意書きされており、 \fIgawk\fP ではコマンドラインで \fB\-\^\-lint\fP
+を指定した場合に、この機能の使用に対して警告を出力します。
+.PP
+もう 1 つは、 \fBwhile\fP, \fBfor\fP, \fBdo\fP ループ本体の外でも \fBcontinue\fP, \fBbreak\fP
+ステートメントを使用できるという機能です。 伝統的な \*(AK の実装では、このように使用した \fBcontinue\fP ステートメントを
+\fBnext\fP ステートメントと等価なものとして扱ってきました。 \fIgawk\fP では \fB\-\^\-traditional\fP
+が指定された場合に、この機能を使うことができます。
+.SH 環境変数
+環境に \fBPOSIXLY_CORRECT\fP が存在する場合には、 \fIgawk\fP はコマンドラインで \fB\-\^\-posix\fP
+が指定されている時と全く同じ動作をします。 このとき \fB\-\^\-lint\fP が指定されていると \fIgawk\fP
+はこの作用についての警告メッセージを出力します。
+.PP
+\fBAWKPATH\fP 環境変数を使用して、 \fIgawk\fP が \fB\-f\fP および \fB\-\^\-file\fP
+オプションで指定されたファイル名を検索するディレクトリを指定できます。
+.SH バグ
+コマンドラインでの変数代入機能を使用するには、変数への代入を直接 コマンドラインに書けばよく、 \fB\-F\fP オプションをつける必要はありません。
+このオプションは昔の \fIawk\fP との互換性のためだけに残されています。
+.PP
+ファイル \fB/dev/fd\fP および \fB/dev/stdin\fP, \fB/dev/stdout\fP, \fB/dev/stderr\fP
+を実際にサポートしているシステムでの \fIgawk\fP からは、それらがないシステムとは違った出力が得られるかもしれません。 \fIgawk\fP
+はそれらのファイルを内部で解釈する際に標準出力への出力を \fB/dev/stdout\fP への出力と同期させますが、それらのファイルを持つシステムでは
+出力はそれぞれ異なるファイルへ向けられます。 利用者の方で気を付けるようにしてください (Caveat Emptor)。
+.PP
+文法的に誤った単一文字プログラムはパーズスタックを溢れさせる傾向があり、 まったく分からないメッセージを生成する傾向にあります。
+このようなプログラムの診断は驚くべきことに一般に難しく、 診断の努力はまったく無意味になります。
+.SH バージョン情報
+このマニュアルは \fIgawk\fP バージョン 3.0.6 について記載しています。
+.SH 作者
+\*(UX \fIawk\fP の最初のバージョンは、AT&T Bell Labs の Alfred Aho と Peter Weinberger および
+Brian Kernighan によって設計、実装されました。 Brian Kernighan はその保守と改良を続けています。
+.PP
+Free Software Foundation の Paul Rubin と Jay Fenlason が、Seventh Edition \*(UX
+で配布された最初のバージョンの \fIawk\fP と互換性を持つように \fIgawk\fP を書きました。 John Woods
+は数々のバグ修正を送って下さいました。 David Trueman は、Arnold Robbins が送って下さった内容をもとに、 \fIgawk\fP
+を新バージョンの \*(UX \fIawk\fP 互換にしました。
+.PP
+DOS への最初の移植は Conrad Kwok と Scott Garfinkle によって 行なわれました。 現在は Scott Deifik が
+DOS 版の保守をしています。 Pat Rankin は VMS への移植を行ない、Michal Jaegermann は Atari ST への
+移植を行ないました。 OS/2 への移植は Kai Uwe Rommel が Darrel Hankerson の助けを借りて 行ないました。 Fred
+Fish が Amiga サポートの提供を行いました。
+.SH バグレポート
+\fIgawk\fP のバグを見付けたら、電子メールを \fBbug\-gawk@gnu.org\fP 宛に送ってください。
+電子メールには、オペレーティングシステムとそのリビジョン、 \fIgawk\fP のリビジョン、コンパイルに使用した C コンパイラ、
+問題を再現するできるだけ小さなテストプログラムとデータを記述してください。
+.PP
+バグレポートを送る前に 2 つのことを行ってください。 第 1 に、最新の \fIgawk\fP を使用されていることを確認してください。 多くの
+(通常微妙な) バグが各々のリリースで修正されていますので、 ご使用のものが古い場合には問題は既に解決されているかもしれません。 第 2
+に、このマニュアルページとリファレンスマニュアルを注意深く読み、 あなたがバグだと思うものが確かにバグであり、
+大きく変わった言語仕様ではないことを確認してください。
+.PP
+バグレポートを \fBcomp.lang.awk\fP に投稿することだけはしないでください。 \fIgawk\fP
+の開発者達は時々このニュースグループを読みますが、 バグレポートをこのニュースグループに投稿しても バグレポートとして信頼性がありません。
+上記のアドレスへの電子メールでお願いします。
+.SH 謝辞
+Bell Labs の Brian Kernighan はテストおよびデバッグの間、貴重な助力を 提供して下さいました。 感謝致します。
+.SH "COPYING PERMISSIONS"
+Copyright \(co 1996\-2000 Free Software Foundation, Inc.
+.PP
+Permission is granted to make and distribute verbatim copies of this manual
+page provided the copyright notice and this permission notice are preserved
+on all copies.
+.ig
+Permission is granted to process this file through troff and print the
+results, provided the printed document carries copying permission
+notice identical to this one except for the removal of this paragraph
+(this paragraph not being relevant to the printed manual page).
+..
+.PP
+Permission is granted to copy and distribute modified versions of this
+manual page under the conditions for verbatim copying, provided that the
+entire resulting derived work is distributed under the terms of a permission
+notice identical to this one.
+.PP
+Permission is granted to copy and distribute translations of this manual
+page into another language, under the above conditions for modified
+versions, except that this permission notice may be stated in a translation
+approved by the Foundation.
index 5cd8b67..d66ec87 100644 (file)
@@ -1,20 +1,8 @@
+.\"*******************************************************************
 .\"
-.\"   Copyright (C) 1994-1999 Free Software Foundation, Inc.
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.\"   Permission is granted to make and distribute verbatim copies of
-.\"this
-.\"manual provided the copyright notice and this permission notice are
-.\"preserved on all copies.
-.\"
-.\"   Permission is granted to copy and distribute modified versions of
-.\"this manual under the conditions for verbatim copying, provided that
-.\"the entire resulting derived work is distributed under the terms of a
-.\"permission notice identical to this one.
-.\"
-.\"   Permission is granted to copy and distribute translations of this
-.\"manual into another language, under the above conditions for modified
-.\"versions, except that this permission notice may be stated in a
-.\"translation approved by the Foundation.
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2001 Yuichi SATO
 .\"         all rights reserved.
 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
 .\"
 .TH IGAWK 1 "Nov 3 1999" "Free Software Foundation" "Utility Commands"
-.\"O .SH NAME
 .SH 名前
-.\"O igawk \- gawk with include files
 igawk \- インクルードファイルを使う gawk
-.\"O .SH SYNOPSIS
 .SH 書式
-.B igawk
-[ all
-.I gawk
-options ]
-.B \-f
-.I program-file
-[
-.B \-\^\-
-] file .\^.\^.
+\fBigawk\fP [ all \fIgawk\fP options ] \fB\-f\fP \fIprogram\-file\fP [ \fB\-\^\-\fP ] file
+\&.\^.\^.
 .br
-.B igawk
-[ all
-.I gawk
-options ]
-[
-.B \-\^\-
-]
-.I program-text
-file .\^.\^.
-.\"O .SH DESCRIPTION
+\fBigawk\fP [ all \fIgawk\fP options ] [ \fB\-\^\-\fP ] \fIprogram\-text\fP file .\^.\^.
 .SH 説明
-.\"O .I Igawk
-.\"O is a simple shell script that adds the ability to have ``include files'' to
-.\"O .IR gawk (1).
-.I igawk
-は
-.IR gawk (1)
-に「インクルードファイル」の機能を追加する簡単なシェルスクリプトである。
+\fIigawk\fP は \fIgawk\fP(1)  に「インクルードファイル」の機能を追加する簡単なシェルスクリプトである。
 .PP
-.\"O AWK programs for
-.\"O .I igawk
-.\"O are the same as for
-.\"O .IR gawk ,
-.\"O except that, in addition, you may have lines like
-.\"O .RS
-.\"O .sp
-.\"O .ft B
-.\"O @include getopt.awk
-.\"O .ft R
-.\"O .sp
-.\"O .RE
-.\"O in your program to include the file
-.\"O .B getopt.awk
-.\"O from either the current directory or one of the other directories
-.\"O in the search path.
-.I igawk
-で使う AWK プログラムは
-.I gawk
-と同じであるが、
-カレントディレクトリまたは検索パスのディレクトリにあるファイル
-.B getopt.awk
-をインクルードするために、
+\fIigawk\fP で使う AWK プログラムは \fIgawk\fP と同じであるが、 カレントディレクトリまたは検索パスのディレクトリにあるファイル
+\fBgetopt.awk\fP をインクルードするために、
 .RS
 .sp
-.ft B
-@include getopt.awk
-.ft R
+\fB@include getopt.awk\fP
 .sp
 .RE
 のような行をプログラムに書くことができる。
-.\"O .SH OPTIONS
 .SH オプション
-.\"O See
-.\"O .IR gawk (1)
-.\"O for a full description of the AWK language and the options that
-.\"O .I gawk
-.\"O supports.
-AWK 言語と
-.I gawk
-がサポートするオプションについての完全な説明は、
-.IR gawk (1)
-を参照すること。
-.\"O .SH EXAMPLES
+AWK 言語と \fIgawk\fP がサポートするオプションについての完全な説明は、 \fIgawk\fP(1)  を参照すること。
 .SH 例
 .nf
-.ft B
-cat << EOF > test.awk
-@include getopt.awk
+\fBcat << EOF > test.awk
+@include getopt.awk\fP
 .sp
-BEGIN {
+\fBBEGIN {
        while (getopt(ARGC, ARGV, "am:q") != \-1)
                \&.\^.\^.
 }
-EOF
+EOF\fP
 .sp
-igawk \-f test.awk
-.ft R
+\fBigawk \-f test.awk\fP
 .fi
-.\"O .SH SEE ALSO
 .SH 関連項目
-.IR gawk (1)
+\fIgawk\fP(1)
 .PP
-.IR "Effective AWK Programming" ,
-Edition 1.0, published by the Free Software Foundation, 1995.
-.\"O .SH AUTHOR
+\fIEffective AWK Programming\fP, Edition 1.0, published by the Free Software
+Foundation, 1995.
 .SH 著者
-Arnold Robbins
-.RB ( arnold@skeeve.com ).
+Arnold Robbins (\fBarnold@skeeve.com\fP).
index 3e3c62b..6f07cfa 100644 (file)
@@ -3,7 +3,6 @@
 .ds AN \s-1ANSI\s+1
 .ds GN \s-1GNU\s+1
 .ds AK \s-1AWK\s+1
-.ds EP \fIGAWK: Effective AWK Programming\fP
 .if !\n(.g \{\
 .      if !\w|\*(lq| \{\
 .              ds lq ``
@@ -14,7 +13,7 @@
 .              if \w'\(rq' .ds rq "\(rq
 .      \}
 .\}
-.TH GAWK 1 "May 29 2001" "Free Software Foundation" "Utility Commands"
+.TH GAWK 1 "May 17 2000" "Free Software Foundation" "Utility Commands"
 .SH NAME
 gawk \- pattern scanning and processing language
 .SH SYNOPSIS
@@ -33,22 +32,6 @@ gawk \- pattern scanning and processing language
 ]
 .I program-text
 file .\|.\|.
-.sp
-.B pgawk
-[ \*(PX or \*(GN style options ]
-.B \-f
-.I program-file
-[
-.B \-\^\-
-] file .\|.\|.
-.br
-.B pgawk
-[ \*(PX or \*(GN style options ]
-[
-.B \-\^\-
-]
-.I program-text
-file .\|.\|.
 .SH DESCRIPTION
 .I Gawk
 is the \*(GN Project's implementation of the \*(AK programming language.
@@ -61,22 +44,9 @@ with the additional features found in the System V Release 4 version
 of \*(UX
 .IR awk .
 .I Gawk
-also provides more recent Bell Laboratories
+also provides more recent Bell Labs
 .I awk
-extensions, and a number of \*(GN-specific extensions.
-.PP
-.I Pgawk
-is the profiling version of
-.IR gawk .
-It is identical in every way to
-.IR gawk ,
-except that programs run more slowly,
-and it automatically produces an execution profile in the file
-.B awkprof.out
-when done.
-See the
-.B \-\^\-profile
-option, below.
+extensions, and some \*(GN-specific extensions.
 .PP
 The command line consists of options to
 .I gawk
@@ -93,11 +63,11 @@ pre-defined \*(AK variables.
 .SH OPTION FORMAT
 .PP
 .I Gawk
-options may be either traditional \*(PX one letter options,
-or \*(GN style long options.  \*(PX options start with a single \*(lq\-\*(rq,
+options may be either the traditional \*(PX one letter options,
+or the \*(GN style long options.  \*(PX options start with a single \*(lq\-\*(rq,
 while long options start with \*(lq\-\^\-\*(rq.
 Long options are provided for both \*(GN-specific features and
-for \*(PX-mandated features.
+for \*(PX mandated features.
 .PP
 Following the \*(PX standard,
 .IR gawk -specific
@@ -119,7 +89,7 @@ remains unique.
 .SH OPTIONS
 .PP
 .I Gawk
-accepts the following options, listed alphabetically.
+accepts the following options.
 .TP
 .PD 0
 .BI \-F " fs"
@@ -139,7 +109,7 @@ variable).
 .PD
 \fB\-\^\-assign \fIvar\fB\^=\^\fIval\fR
 Assign the value
-.I val
+.IR val ,
 to the variable
 .IR var ,
 before execution of the program begins.
@@ -174,7 +144,7 @@ flag sets the maximum number of fields, and the
 .B r
 flag sets the maximum record size.  These two flags and the
 .B \-m
-option are from the Bell Laboratories research version of \*(UX
+option are from the Bell Labs research version of \*(UX
 .IR awk .
 They are ignored by
 .IR gawk ,
@@ -183,16 +153,16 @@ since
 has no pre-defined limits.
 .TP
 .PD 0
-.B "\-W compat"
+.B "\-W traditional"
 .TP
 .PD 0
-.B "\-W traditional"
+.B "\-W compat"
 .TP
 .PD 0
-.B \-\^\-compat
+.B \-\^\-traditional
 .TP
 .PD
-.B \-\^\-traditional
+.B \-\^\-compat
 Run in
 .I compatibility
 mode.  In compatibility mode,
@@ -219,33 +189,7 @@ below, for more information.
 .PD
 .B \-\^\-copyright
 Print the short version of the \*(GN copyright information message on
-the standard output and exit successfully.
-.TP
-.PD 0
-\fB\-W dump-variables\fR[\fB=\fIfile\fR]
-.TP
-.PD
-\fB\-\^\-dump-variables\fR[\fB=\fIfile\fR]
-Print a sorted list of global variables, their types and final values to
-.IR file .
-If no
-.I file
-is provided,
-.I gawk
-uses a file named
-.I awkvars.out
-in the current directory.
-.sp .5
-Having a list of all the global variables is a good way to look for
-typographical errors in your programs.
-You would also use this option if you have a large program with a lot of
-functions, and you want to be sure that your functions don't
-inadvertently use global variables that you meant to be local.
-(This is a particularly easy mistake to make with simple variable
-names like
-.BR i ,
-.BR j ,
-and so on.)
+the standard output, and exits successfully.
 .TP
 .PD 0
 .B "\-W help"
@@ -265,17 +209,12 @@ the standard output.
 these options cause an immediate, successful exit.)
 .TP
 .PD 0
-.BR "\-W lint" [ =fatal ]
+.B "\-W lint"
 .TP
 .PD
-.BR \-\^\-lint [ =fatal ]
+.B \-\^\-lint
 Provide warnings about constructs that are
 dubious or non-portable to other \*(AK implementations.
-With an optional argument of
-.BR fatal ,
-lint warnings become fatal errors.
-This may be drastic, but its use will certainly encourage the
-development of cleaner \*(AK programs.
 .TP
 .PD 0
 .B "\-W lint\-old"
@@ -285,29 +224,6 @@ development of cleaner \*(AK programs.
 Provide warnings about constructs that are
 not portable to the original version of Unix
 .IR awk .
-.TP
-.PD 0
-.B "\-W gen\-po"
-.TP
-.PD
-.B \-\^\-gen\-po
-Scan and parse the \*(AK program, and generate a \*(GN
-.B \&.po
-format file on standard output with entries for all localizable
-strings in the program.  The program itself is not executed.
-See the \*(GN
-.I gettext
-distribution for more information on
-.B \&.po
-files.
-.TP
-.PD 0
-.B "\-W non\-decimal\-data"
-.TP
-.PD
-.B "\-\^\-non\-decimal\-data"
-Recognize octal and hexadecimal values in input data.
-.I "Use this option with great caution!"
 .ig
 .\" This option is left undocumented, on purpose.
 .TP
@@ -330,7 +246,7 @@ This turns on
 .I compatibility
 mode, with the following additional restrictions:
 .RS
-.TP "\w'\(bu'u+1n"
+.TP \w'\(bu'u+1n
 \(bu
 .B \ex
 escape sequences are not recognized.
@@ -341,12 +257,6 @@ Only space and tab act as field separators when
 is set to a single space, newline does not.
 .TP
 \(bu
-You cannot continue lines after
-.B ?
-and
-.BR : .
-.TP
-\(bu
 The synonym
 .B func
 for the keyword
@@ -370,23 +280,6 @@ function is not available.
 .RE
 .TP
 .PD 0
-\fB\-W profile\fR[\fB=\fIprof_file\fR]
-.TP
-.PD
-\fB\-\^\-profile\fR[\fB=\fIprof_file\fR]
-Send profiling data to
-.IR prof_file .
-The default is
-.BR awkprof.out .
-When run with
-.IR gawk ,
-the profile is just a \*(lqpretty printed\*(rq version of the program.
-When run with
-.IR pgawk ,
-the profile contains execution counts of each statement in the program
-in the left margin and function call counts for each user-defined function.
-.TP
-.PD 0
 .B "\-W re\-interval"
 .TP
 .PD
@@ -444,15 +337,14 @@ This is also useful when reporting bugs.
 .IR "GNU Coding Standards" ,
 these options cause an immediate, successful exit.)
 .TP
-.PD 0
 .B \-\^\-
-Signal the end of options. This is useful to allow further arguments to the
+Signal the end of options.  This is useful to allow further arguments to the
 \*(AK program itself to start with a \*(lq\-\*(rq.
 This is mainly for consistency with the argument parsing convention used
 by most other \*(PX programs.
 .PP
 In compatibility mode,
-any other options are flagged as invalid, but are otherwise ignored.
+any other options are flagged as illegal, but are otherwise ignored.
 In normal operation, as long as program text has been supplied, unknown
 options are passed on to the \*(AK program in the
 .B ARGV
@@ -482,7 +374,7 @@ and
 .B \-\^\-source
 options may be used multiple times on the command line.
 .I Gawk
-reads the program text as if all the
+will read the program text as if all the
 .IR program-file s
 and command line source texts
 had been concatenated together.  This is useful for building libraries
@@ -580,7 +472,7 @@ is any single character, that character separates records.
 Otherwise,
 .B RS
 is a regular expression.  Text in the input that matches this
-regular expression separates the record.
+regular expression will separate the record.
 However, in compatibility mode,
 only the first character of its string
 value is used for separating records.
@@ -620,10 +512,9 @@ by runs of spaces and/or tabs and/or newlines.
 (But see the discussion of
 .BR \-\^\-posix ,
 below).
-.B NOTE:
-The value of
+Note that the value of
 .B IGNORECASE
-(see below) also affects how fields are split when
+(see below) will also affect how fields are split when
 .B FS
 is a regular expression, and how records are separated when
 .B RS
@@ -634,7 +525,7 @@ If the
 variable is set to a space separated list of numbers, each field is
 expected to have fixed width, and
 .I gawk
-splits up the record using the specified widths.  The value of
+will split up the record using the specified widths.  The value of
 .B FS
 is ignored.
 Assigning a new value to
@@ -648,7 +539,7 @@ Each field in the input record may be referenced by its position,
 .BR $2 ,
 and so on.
 .B $0
-is the whole record.
+is the whole record.  The value of a field may be assigned to as well.
 Fields need not be referenced by constants:
 .RS
 .PP
@@ -660,7 +551,6 @@ print $n
 .RE
 .PP
 prints the fifth field in the input record.
-.PP
 The variable
 .B NF
 is set to the total number of fields in the input record.
@@ -670,10 +560,10 @@ References to non-existent fields (i.e. fields after
 produce the null-string.  However, assigning to a non-existent field
 (e.g.,
 .BR "$(NF+2) = 5" )
-increases the value of
+will increase the value of
 .BR NF ,
-creates any intervening fields with the null string as their value, and
-causes the value of
+create any intervening fields with the null string as their value, and
+cause the value of
 .B $0
 to be recomputed, with the fields being separated by the value of
 .BR OFS .
@@ -684,21 +574,12 @@ causes the values of fields past the new value to be lost, and the value of
 .B $0
 to be recomputed, with the fields being separated by the value of
 .BR OFS .
-.PP
-Assigning a value to an existing field
-causes the whole record to be rebuilt when
-.B $0
-is referenced.
-Similarly, assigning a value to
-.B $0
-causes the record to be resplit, creating new
-values for the fields.
 .SS Built-in Variables
 .PP
-.IR Gawk\^ "'s"
+.IR Gawk 's
 built-in variables are:
 .PP
-.TP "\w'\fBFIELDWIDTHS\fR'u+1n"
+.TP \w'\fBFIELDWIDTHS\fR'u+1n
 .B ARGC
 The number of command line arguments (does not include options to
 .IR gawk ,
@@ -718,16 +599,6 @@ Dynamically changing the contents of
 .B ARGV
 can control the files used for data.
 .TP
-.B BINMODE
-On non-POSIX systems, specifies use of \*(lqbinary\*(rq mode for all file I/O.
-Numeric values of 1, 2, or 3, specify that input files, output files, or
-all files, respectively, should use binary I/O.
-String values of \fB"r"\fR, or \fB"w"\fR specify that input files, or output files,
-respectively, should use binary I/O.
-String values of \fB"rw"\fR or \fB"wr"\fR specify that all files
-should use binary I/O.
-Any other string value is treated as \fB"rw"\fR, but generates a warning message.
-.TP
 .B CONVFMT
 The conversion format for numbers, \fB"%.6g"\fR, by default.
 .TP
@@ -741,6 +612,9 @@ Changing this array does not affect the environment seen by programs which
 spawns via redirection or the
 .B system()
 function.
+(This may change in a future version of
+.IR gawk .)
+.\" but don't hold your breath...
 .TP
 .B ERRNO
 If a system error occurs either doing a redirection for
@@ -753,7 +627,6 @@ then
 .B ERRNO
 will contain
 a string describing the error.
-The value is subject to translation in non-English locales.
 .TP
 .B FIELDWIDTHS
 A white-space separated list of fieldwidths.  When set,
@@ -762,6 +635,10 @@ parses the input into fields of fixed width, instead of using the
 value of the
 .B FS
 variable as the field separator.
+The fixed field width facility is still experimental; the
+semantics may change as
+.I gawk
+evolves over time.
 .TP
 .B FILENAME
 The name of the current input file.
@@ -772,9 +649,7 @@ However,
 .B FILENAME
 is undefined inside the
 .B BEGIN
-block
-(unless set by
-.BR getline ).
+block.
 .TP
 .B FNR
 The input record number in the current input file.
@@ -807,16 +682,8 @@ and the
 .BR split() ,
 and
 .B sub()
-built-in functions all ignore case when doing regular expression
-operations.
-.B NOTE:
-Array subscripting is
-.I not
-affected, nor is the
-.B asort()
-function.
-.sp .5
-Thus, if
+pre-defined functions will all ignore case when doing regular expression
+operations.  Thus, if
 .B IGNORECASE
 is not equal to zero,
 .B /aB/
@@ -828,18 +695,13 @@ is zero, so all regular expression and string
 operations are normally case-sensitive.
 Under Unix, the full ISO 8859-1 Latin-1 character set is used
 when ignoring case.
-.TP
-.B LINT
-Provides dynamic control of the
-.B \-\^\-lint
-option from within an \*(AK program.
-When true,
+.B NOTE:
+In versions of
 .I gawk
-prints lint warnings. When false, it does not.
-When assigned the string value \fB"fatal"\fP,
-lint warnings become fatal errors, exactly like
-.BR \-\^\-lint=fatal .
-Any other true value just prints warnings.
+prior to 3.0,
+.B IGNORECASE
+only affected regular expression operations.  It now affects string
+comparisons as well.
 .TP
 .B NF
 The number of fields in the current input record.
@@ -856,57 +718,6 @@ The output field separator, a space by default.
 .B ORS
 The output record separator, by default a newline.
 .TP
-.B PROCINFO
-The elements of this array provide access to information about the
-running \*(AK program.
-On some systems,
-there may be elements in the array, \fB"group1"\fP through
-\fB"group\fIn\fB"\fR for some
-.IR n ,
-which is the number of supplementary groups that the process has.
-Use the
-.B in
-operator to test for these elements.
-The following elements are guaranteed to be available:
-.RS
-.TP \w'\fBPROCINFO["pgrpid"]\fR'u+1n
-\fBPROCINFO["egid"]\fP
-the value of the
-.IR getegid (2)
-system call.
-.TP
-\fBPROCINFO["euid"]\fP
-the value of the
-.IR geteuid (2)
-system call.
-.TP
-\fBPROCINFO["FS"]\fP
-\fB"FS"\fP if field splitting with
-.B FS
-is in effect, or \fB"FIELDWIDTHS"\fP if field splitting with
-.B FIELDWIDTHS
-is in effect.
-.TP
-\fBPROCINFO["gid"]\fP
-the value of the
-.IR getgid (2)
-system call.
-.TP
-\fBPROCINFO["pgrpid"]\fP
-the process group ID of the current process.
-.TP
-\fBPROCINFO["pid"]\fP
-the process ID of the current process.
-.TP
-\fBPROCINFO["ppid"]\fP
-the parent process ID of the current process.
-.TP
-\fBPROCINFO["uid"]\fP
-the value of the
-.IR getuid (2)
-system call.
-.RE
-.TP
 .B RS
 The input record separator, by default a newline.
 .TP
@@ -932,10 +743,6 @@ The length of the string matched by
 .B SUBSEP
 The character used to separate multiple subscripts in array
 elements, by default \fB"\e034"\fR.
-.TP
-.B TEXTDOMAIN
-The text domain of the \*(AK program; used to find the localized
-translations for the program's strings.
 .SS Arrays
 .PP
 Arrays are subscripted with an expression between square brackets
@@ -1010,7 +817,7 @@ to be treated as a string, concatenate it with the null string.
 .PP
 When a string must be converted to a number, the conversion is accomplished
 using
-.IR strtod (3).
+.IR atof (3).
 A number is converted to a string by using the value of
 .B CONVFMT
 as a format string for
@@ -1043,13 +850,11 @@ If one value is numeric and the other has a string value that is a
 Otherwise, the numeric value is converted to a string and a string
 comparison is performed.
 Two strings are compared, of course, as strings.
-Note that the POSIX standard applies the concept of
-\*(lqnumeric string\*(rq everywhere, even to string constants.
-However, this is
+According to the \*(PX standard, even if two strings are
+numeric strings, a numeric comparison is performed.  However, this is
 clearly incorrect, and
 .I gawk
 does not do this.
-(Fortunately, this is fixed in the next version of the standard.)
 .PP
 Note that string constants, such as \fB"57"\fP, are
 .I not
@@ -1072,79 +877,6 @@ should be treated that way.
 .PP
 Uninitialized variables have the numeric value 0 and the string value ""
 (the null, or empty, string).
-.SS Octal and Hexadecimal Constants
-Starting with version 3.1 of
-.I gawk ,
-you may use C-style octal and hexadecimal constants in your AWK
-program source code.
-For example, the octal value
-.B 011
-is equal to decimal
-.BR 9 ,
-and the hexadecimal value
-.B 0x11
-is equal to decimal 17.
-.SS String Constants
-.PP
-String constants in \*(AK are sequences of characters enclosed
-between double quotes (\fB"\fR).  Within strings, certain
-.I "escape sequences"
-are recognized, as in C.  These are:
-.PP
-.TP "\w'\fB\e\^\fIddd\fR'u+1n"
-.B \e\e
-A literal backslash.
-.TP
-.B \ea
-The \*(lqalert\*(rq character; usually the \s-1ASCII\s+1 \s-1BEL\s+1 character.
-.TP
-.B \eb
-backspace.
-.TP
-.B \ef
-form-feed.
-.TP
-.B \en
-newline.
-.TP
-.B \er
-carriage return.
-.TP
-.B \et
-horizontal tab.
-.TP
-.B \ev
-vertical tab.
-.TP
-.BI \ex "\^hex digits"
-The character represented by the string of hexadecimal digits following
-the
-.BR \ex .
-As in \*(AN C, all following hexadecimal digits are considered part of
-the escape sequence.
-(This feature should tell us something about language design by committee.)
-E.g., \fB"\ex1B"\fR is the \s-1ASCII\s+1 \s-1ESC\s+1 (escape) character.
-.TP
-.BI \e ddd
-The character represented by the 1-, 2-, or 3-digit sequence of octal
-digits.
-E.g., \fB"\e033"\fR is the \s-1ASCII\s+1 \s-1ESC\s+1 (escape) character.
-.TP
-.BI \e c
-The literal character
-.IR c\^ .
-.PP
-The escape sequences may also be used inside constant regular expressions
-(e.g.,
-.B "/[\ \et\ef\en\er\ev]/"
-matches whitespace characters).
-.PP
-In compatibility mode, the characters represented by octal and
-hexadecimal escape sequences are treated literally when used in
-regular expression constants.  Thus,
-.B /a\e52b/
-is equivalent to
-.BR /a\e*b/ .
 .SH PATTERNS AND ACTIONS
 \*(AK is a line-oriented language.  The pattern comes first, and then the
 action.  Action statements are enclosed in
@@ -1152,7 +884,7 @@ action.  Action statements are enclosed in
 and
 .BR } .
 Either the pattern may be missing, or the action may be missing, but,
-of course, not both.  If the pattern is missing, the action is
+of course, not both.  If the pattern is missing, the action will be
 executed for every single record of input.
 A missing action is equivalent to
 .RS
@@ -1273,7 +1005,7 @@ inclusive.  It does not combine with any other sort of pattern expression.
 Regular expressions are the extended kind found in
 .IR egrep .
 They are composed of characters as follows:
-.TP "\w'\fB[^\fIabc.\|.\|.\fB]\fR'u+2n"
+.TP \w'\fB[^\fIabc.\|.\|.\fB]\fR'u+2n
 .I c
 matches the non-metacharacter
 .IR c .
@@ -1313,17 +1045,17 @@ concatenation: matches
 and then
 .IR r2 .
 .TP
-.IB r\^ +
+.IB r +
 matches one or more
-.IR r\^ "'s."
+.IR r 's.
 .TP
 .IB r *
 matches zero or more
-.IR r\^ "'s."
+.IR r 's.
 .TP
-.IB r\^ ?
+.IB r ?
 matches zero or one
-.IR r\^ "'s."
+.IR r 's.
 .TP
 .BI ( r )
 grouping: matches
@@ -1339,7 +1071,7 @@ grouping: matches
 .IB r { n , m }
 One or two numbers inside braces denote an
 .IR "interval expression" .
-If there is one number in the braces, the preceding regular expression
+If there is one number in the braces, the preceding regexp
 .I r
 is repeated
 .I n
@@ -1388,7 +1120,7 @@ matches the empty string at the beginning of a buffer (string).
 matches the empty string at the end of a buffer.
 .PP
 The escape sequences that are valid in string constants (see below)
-are also valid in regular expressions.
+are also legal in regular expressions.
 .PP
 .I "Character classes"
 are a new feature introduced in the \*(PX standard.
@@ -1398,15 +1130,15 @@ actual characters themselves can vary from country to country and/or
 from character set to character set.  For example, the notion of what
 is an alphabetic character differs in the USA and in France.
 .PP
-A character class is only valid in a regular expression
+A character class is only valid in a regexp
 .I inside
 the brackets of a character list.  Character classes consist of
 .BR [: ,
 a keyword denoting the class, and
 .BR :] .
-The character
-classes defined by the \*(PX standard are:
-.TP "\w'\fB[:alnum:]\fR'u+2n"
+Here are the character
+classes defined by the \*(PX standard.
+.TP
 .B [:alnum:]
 Alphanumeric characters.
 .TP
@@ -1451,16 +1183,14 @@ For example, before the \*(PX standard, to match alphanumeric
 characters, you would have had to write
 .BR /[A\-Za\-z0\-9]/ .
 If your character set had other alphabetic characters in it, this would not
-match them, and if your character set collated differently from
-\s-1ASCII\s+1, this might not even match the
-\s-1ASCII\s+1 alphanumeric characters.
-With the \*(PX character classes, you can write
+match them.  With the \*(PX character classes, you can write
 .BR /[[:alnum:]]/ ,
-and this matches
+and this will match
+.I all
 the alphabetic and numeric characters in your character set.
 .PP
 Two additional special sequences can appear in character lists.
-These apply to non-\s-1ASCII\s+1 character sets, which can have single symbols
+These apply to non-ASCII character sets, which can have single symbols
 (called
 .IR "collating elements" )
 that are represented with more than one
@@ -1470,7 +1200,7 @@ or sorting, purposes.  (E.g., in French, a plain \*(lqe\*(rq
 and a grave-accented e\` are equivalent.)
 .TP
 Collating Symbols
-A collating symbol is a multi-character collating element enclosed in
+A collating symbols is a multi-character collating element enclosed in
 .B [.
 and
 .BR .] .
@@ -1478,9 +1208,9 @@ For example, if
 .B ch
 is a collating element, then
 .B [[.ch.]]
-is a regular expression that matches this collating element, while
+is a regexp that matches this collating element, while
 .B [ch]
-is a regular expression that matches either
+is a regexp that matches either
 .B c
 or
 .BR h .
@@ -1494,17 +1224,15 @@ and
 For example, the name
 .B e
 might be used to represent all of
-\*(lqe,\*(rq \*(lqe\h'-\w:e:u'\`,\*(rq and \*(lqe\h'-\w:e:u'\`.\*(rq
+\*(lqe,\*(rq \*(lqe\`,\*(rq and \*(lqe\`.\*(rq
 In this case,
-.B [[=e=]]
-is a regular expression
+.B [[=e]]
+is a regexp
 that matches any of
-.BR e ,
-....BR "e\'" ,
-.BR "e\h'-\w:e:u'\'" ,
+ .BR e ,
+ .BR e\' ,
 or
-....BR "e\`" .
-.BR "e\h'-\w:e:u'\`" .
+ .BR e\` .
 .PP
 These features are very valuable in non-English speaking locales.
 The library functions that
@@ -1525,22 +1253,22 @@ and
 .B \e'
 operators are specific to
 .IR gawk ;
-they are extensions based on facilities in the \*(GN regular expression libraries.
+they are extensions based on facilities in the \*(GN regexp libraries.
 .PP
 The various command line options
 control how
 .I gawk
-interprets characters in regular expressions.
+interprets characters in regexps.
 .TP
 No options
 In the default case,
 .I gawk
 provide all the facilities of
-\*(PX regular expressions and the \*(GN regular expression operators described above.
+\*(PX regexps and the \*(GN regexp operators described above.
 However, interval expressions are not supported.
 .TP
 .B \-\^\-posix
-Only \*(PX regular expressions are supported, the \*(GN operators are not special.
+Only \*(PX regexps are supported, the \*(GN operators are not special.
 (E.g.,
 .B \ew
 matches a literal
@@ -1550,16 +1278,16 @@ Interval expressions are allowed.
 .B \-\^\-traditional
 Traditional Unix
 .I awk
-regular expressions are matched.  The \*(GN operators
+regexps are matched.  The \*(GN operators
 are not special, interval expressions are not available, and neither
 are the \*(PX character classes
 .RB ( [[:alnum:]]
 and so on).
 Characters described by octal and hexadecimal escape sequences are
-treated literally, even if they represent regular expression metacharacters.
+treated literally, even if they represent regexp metacharacters.
 .TP
 .B \-\^\-re\-interval
-Allow interval expressions in regular expressions, even if
+Allow interval expressions in regexps, even if
 .B \-\^\-traditional
 has been provided.
 .SS Actions
@@ -1685,14 +1413,8 @@ as follows:
 The input/output statements are as follows:
 .PP
 .TP "\w'\fBprintf \fIfmt, expr-list\fR'u+1n"
-\fBclose(\fIfile \fR[\fB, \fIhow\fR]\fB)\fR
-Close file, pipe or co-process.
-The optional
-.I how
-should only be used when closing one end of a
-two-way pipe to a co-process.
-It must be a string value, either
-\fB"to"\fR or \fB"from"\fR.
+.BI close( file )
+Close file (or pipe, see below).
 .TP
 .B getline
 Set
@@ -1723,28 +1445,6 @@ Set
 from next record of
 .IR file .
 .TP
-\fIcommand\fB | getline \fR[\fIvar\fR]
-Run
-.I command
-piping the output either into
-.B $0
-or
-.IR var ,
-as above.
-.TP
-\fIcommand\fB |& getline \fR[\fIvar\fR]
-Run
-.I command
-as a co-process
-piping the output either into
-.B $0
-or
-.IR var ,
-as above.
-Co-processes are a
-.I gawk
-extension.
-.TP
 .B next
 Stop processing the current input record.  The next input record
 is read and processing starts over with the first pattern in the
@@ -1761,9 +1461,14 @@ and
 are updated,
 .B FNR
 is reset to 1, and processing starts over with the first pattern in the
-\*(AK program. If the end of the input data is reached, the
+\*(AK program.  If the end of the input data is reached, the
 .B END
 block(s), if any, are executed.
+.B NOTE:
+Earlier versions of gawk used
+.BR "next file" ,
+as two words.  While this usage is still recognized, it generates a
+warning message and will eventually be removed.
 .TP
 .B print
 Prints the current record.
@@ -1814,41 +1519,36 @@ is the null string,
 then all open output files and pipes
 have their buffers flushed.
 .PP
-Additional output redirections are allowed for
+Other input/output redirections are also allowed.  For
 .B print
 and
-.BR printf .
-.TP
-.BI "print .\|.\|. >>" " file"
+.BR printf ,
+.BI >> " file"
 appends output to the
-.IR file .
-.TP
-.BI "print .\|.\|. |" " command"
+.IR file ,
+while
+.BI | " command"
 writes on a pipe.
-.TP
-.BI "print .\|.\|. |&" " command"
-sends data to a co-process.
-.PP
+In a similar fashion,
+.IB command " | getline"
+pipes into
+.BR getline .
 The
 .BR getline
-command returns 0 on end of file and \-1 on an error.
-Upon an error,
-.B ERRNO
-contains a string describing the problem.
+command will return 0 on end of file, and \-1 on an error.
 .PP
-.B NOTE:
-If using a pipe or co-process to
+NOTE: If using a pipe to
 .BR getline ,
 or from
 .B print
 or
-.B printf
+.BR printf
 within a loop, you
 .I must
 use
 .B close()
 to create new instances of the command.
-\*(AK does not automatically close pipes or co-processes when
+AWK does not automatically close pipes when
 they return EOF.
 .SS The \fIprintf\fP\^ Statement
 .PP
@@ -1859,7 +1559,7 @@ statement and
 function
 (see below)
 accept the following conversion specification formats:
-.TP "\w'\fB%g\fR, \fB%G\fR'u+2n"
+.TP
 .B %c
 An \s-1ASCII\s+1 character.
 If the argument used for
@@ -1868,10 +1568,18 @@ is numeric, it is treated as a character and printed.
 Otherwise, the argument is assumed to be a string, and the only first
 character of that string is printed.
 .TP
-.BR "%d" "," " %i"
+.PD 0
+.B %d
+.TP
+.PD
+.B %i
 A decimal number (the integer part).
 .TP
-.B %e , " %E"
+.PD 0
+.B %e
+.TP
+.PD
+.B %E
 A floating point number of the form
 .BR [\-]d.dddddde[+\^\-]dd .
 The
@@ -1885,7 +1593,11 @@ instead of
 A floating point number of the form
 .BR [\-]ddd.dddddd .
 .TP
-.B %g , " %G"
+.PD 0
+.B %g
+.TP
+.PD
+.B %G
 Use
 .B %e
 or
@@ -1908,7 +1620,11 @@ An unsigned decimal number (again, an integer).
 .B %s
 A character string.
 .TP
-.B %x , " %X"
+.PD 0
+.B %x
+.TP
+.PD
+.B %X
 An unsigned hexadecimal number (an integer).
 The
 .B %X
@@ -1922,23 +1638,10 @@ A single
 .B %
 character; no argument is converted.
 .PP
-Optional, additional parameters may lie between the
+There are optional, additional parameters that may lie between the
 .B %
 and the control letter:
 .TP
-.IB count $
-Use the
-.IR count "'th"
-argument at this point in the formatting.
-This is called a
-.I "positional specifier"
-and
-is intended primarily for use in translated versions of
-format strings, not in the original text of an AWK program.
-It is a
-.I gawk
-extension.
-.TP
 .B \-
 The expression should be left-justified within its field.
 .TP
@@ -1973,7 +1676,7 @@ For
 .BR %E ,
 and
 .BR %f ,
-the result always contains a
+the result will always contain a
 decimal point.
 For
 .BR %g ,
@@ -2019,9 +1722,7 @@ of significant digits.  For the
 and
 .B %X
 formats, it specifies the minimum number of
-digits to print.  For
-.BR %s ,
-it specifies the maximum number of
+digits to print.  For a string, it specifies the maximum number of
 characters from the string that should be printed.
 .PP
 The dynamic
@@ -2037,18 +1738,11 @@ in place of either the
 .B width
 or
 .B prec
-specifications causes their values to be taken from
+specifications will cause their values to be taken from
 the argument list to
 .B printf
 or
 .BR sprintf() .
-To use a positional specifier with a dynamic width or precision,
-supply the
-.IB count $
-after the
-.B *
-in the format string.
-For example, \fB"%3$*2$.*1$s"\fP.
 .SS Special File Names
 .PP
 When doing I/O redirection from either
@@ -2062,72 +1756,13 @@ from a file,
 .I gawk
 recognizes certain special filenames internally.  These filenames
 allow access to open file descriptors inherited from
-.IR gawk\^ "'s"
+.IR gawk 's
 parent process (usually the shell).
-These file names may also be used on the command line to name data files.
-The filenames are:
-.TP "\w'\fB/dev/stdout\fR'u+1n"
-.B /dev/stdin
-The standard input.
-.TP
-.B /dev/stdout
-The standard output.
-.TP
-.B /dev/stderr
-The standard error output.
-.TP
-.BI /dev/fd/\^ n
-The file associated with the open file descriptor
-.IR n .
-.PP
-These are particularly useful for error messages.  For example:
-.PP
-.RS
-.ft B
-print "You blew it!" > "/dev/stderr"
-.ft R
-.RE
-.PP
-whereas you would otherwise have to use
-.PP
-.RS
-.ft B
-print "You blew it!" | "cat 1>&2"
-.ft R
-.RE
-.PP
-The following special filenames may be used with the
-.B |&
-co-process operator for creating TCP/IP network connections.
-.TP "\w'\fB/inet/tcp/\fIlport\fB/\fIrhost\fB/\fIrport\fR'u+2n"
-.BI /inet/tcp/ lport / rhost / rport
-File for TCP/IP connection on local port
-.I lport
-to
-remote host
-.I rhost
-on remote port
-.IR rport .
-Use a port of
-.B 0
-to have the system pick a port.
-.TP
-.BI /inet/udp/ lport / rhost / rport
-Similar, but use UDP/IP instead of TCP/IP.
-.TP
-.BI /inet/raw/ lport / rhost / rport
-.\" Similar, but use raw IP sockets.
-Reserved for future use.
-.PP
 Other special filenames provide access to information about the running
-.I gawk
+.B gawk
 process.
-.B "These filenames are now obsolete."
-Use the
-.B PROCINFO
-array to obtain the information they provide.
 The filenames are:
-.TP "\w'\fB/dev/stdout\fR'u+1n"
+.TP \w'\fB/dev/stdout\fR'u+1n
 .B /dev/pid
 Reading this file returns the process ID of the current process,
 in decimal, terminated with a newline.
@@ -2162,84 +1797,88 @@ system call.
 If there are any additional fields, they are the group IDs returned by
 .IR getgroups (2).
 Multiple groups may not be supported on all systems.
-.SS Numeric Functions
-.PP
-\*(AK has the following built-in arithmetic functions:
-.PP
-.TP "\w'\fBsrand(\fR[\fIexpr\^\fR]\fB)\fR'u+1n"
-.BI atan2( y , " x" )
-Returns the arctangent of
-.I y/x
-in radians.
-.TP
-.BI cos( expr )
-Returns the cosine of
-.IR expr ,
-which is in radians.
-.TP
-.BI exp( expr )
-The exponential function.
-.TP
-.BI int( expr )
-Truncates to integer.
-.TP
-.BI log( expr )
-The natural logarithm function.
 .TP
-.B rand()
-Returns a random number between 0 and 1.
+.B /dev/stdin
+The standard input.
 .TP
-.BI sin( expr )
-Returns the sine of
-.IR expr ,
-which is in radians.
+.B /dev/stdout
+The standard output.
 .TP
-.BI sqrt( expr )
-The square root function.
+.B /dev/stderr
+The standard error output.
 .TP
-\&\fBsrand(\fR[\fIexpr\^\fR]\fB)\fR
-Uses
-.I expr
+.BI /dev/fd/\^ n
+The file associated with the open file descriptor
+.IR n .
+.PP
+These are particularly useful for error messages.  For example:
+.PP
+.RS
+.ft B
+print "You blew it!" > "/dev/stderr"
+.ft R
+.RE
+.PP
+whereas you would otherwise have to use
+.PP
+.RS
+.ft B
+print "You blew it!" | "cat 1>&2"
+.ft R
+.RE
+.PP
+These file names may also be used on the command line to name data files.
+.SS Numeric Functions
+.PP
+\*(AK has the following pre-defined arithmetic functions:
+.PP
+.TP \w'\fBsrand(\fR[\fIexpr\^\fR]\fB)\fR'u+1n
+.BI atan2( y , " x" )
+returns the arctangent of
+.I y/x
+in radians.
+.TP
+.BI cos( expr )
+returns the cosine of
+.IR expr ,
+which is in radians.
+.TP
+.BI exp( expr )
+the exponential function.
+.TP
+.BI int( expr )
+truncates to integer.
+.TP
+.BI log( expr )
+the natural logarithm function.
+.TP
+.B rand()
+returns a random number between 0 and 1.
+.TP
+.BI sin( expr )
+returns the sine of
+.IR expr ,
+which is in radians.
+.TP
+.BI sqrt( expr )
+the square root function.
+.TP
+\&\fBsrand(\fR[\fIexpr\^\fR]\fB)\fR
+uses
+.I expr
 as a new seed for the random number generator.  If no
 .I expr
-is provided, the time of day is used.
+is provided, the time of day will be used.
 The return value is the previous seed for the random
 number generator.
 .SS String Functions
 .PP
 .I Gawk
-has the following built-in string functions:
+has the following pre-defined string functions:
 .PP
 .TP "\w'\fBsprintf(\^\fIfmt\fB\^, \fIexpr-list\^\fB)\fR'u+1n"
-\fBasort(\fIs \fR[\fB, \fId\fR]\fB)\fR
-Returns the number of elements in the source
-array
-.IR s .
-The contents of
-.I s
-are sorted using
-.IR gawk\^ "'s"
-normal rules for
-comparing values, and the indexes of the
-sorted values of
-.I s
-are replaced with sequential
-integers starting with 1. If the optional
-destination array
-.I d
-is specified, then
-.I s
-is first duplicated into
-.IR d ,
-and then
-.I d
-is sorted, leaving the indexes of the
-source array
-.I s
-unchanged.
-.TP
 \fBgensub(\fIr\fB, \fIs\fB, \fIh \fR[\fB, \fIt\fR]\fB)\fR
-Search the target string
+search the target string
 .I t
 for matches of the regular expression
 .IR r .
@@ -2258,9 +1897,9 @@ Otherwise,
 is a number indicating which match of
 .I r
 to replace.
-If
+If no
 .I t
-is not supplied,
+is supplied,
 .B $0
 is used instead.
 Within the replacement text
@@ -2286,7 +1925,7 @@ and the original target string is
 changed.
 .TP "\w'\fBsprintf(\^\fIfmt\fB\^, \fIexpr-list\^\fB)\fR'u+1n"
 \fBgsub(\fIr\fB, \fIs \fR[\fB, \fIt\fR]\fB)\fR
-For each substring matching the regular expression
+for each substring matching the regular expression
 .I r
 in the string
 .IR t ,
@@ -2304,18 +1943,18 @@ Use
 .B \e&
 to get a literal
 .BR & .
-(This must be typed as \fB"\e\e&"\fP;
-see \*(EP
+See
+.I "Effective AWK Programming"
 for a fuller discussion of the rules for
 .BR &'s
 and backslashes in the replacement text of
 .BR sub() ,
 .BR gsub() ,
 and
-.BR gensub() .)
+.BR gensub() .
 .TP
 .BI index( s , " t" )
-Returns the index of the string
+returns the index of the string
 .I t
 in the string
 .IR s ,
@@ -2324,7 +1963,7 @@ or 0 if
 is not present.
 .TP
 \fBlength(\fR[\fIs\fR]\fB)
-Returns the length of the string
+returns the length of the string
 .IR s ,
 or the length of
 .B $0
@@ -2332,8 +1971,8 @@ if
 .I s
 is not supplied.
 .TP
-\fBmatch(\fIs\fB, \fIr \fR[\fB, \fIa\fR]\fB)\fR
-Returns the position in
+.BI match( s , " r" )
+returns the position in
 .I s
 where the regular expression
 .I r
@@ -2343,33 +1982,9 @@ is not present, and sets the values of
 .B RSTART
 and
 .BR RLENGTH .
-Note that the argument order is the same as for the
-.B ~
-operator:
-.IB str " ~"
-.IR re .
-.ft R
-If array
-.I a
-is provided,
-.I a
-is cleared and then elements 1 through
-.I n
-are filled with the portions of
-.I s
-that match the corresponding parenthesized
-subexpression in
-.IR r .
-The 0'th element of
-.I a
-contains the portion
-of
-.I s
-matched by the entire regular expression
-.IR r .
 .TP
 \fBsplit(\fIs\fB, \fIa \fR[\fB, \fIr\fR]\fB)\fR
-Splits the string
+splits the string
 .I s
 into the array
 .I a
@@ -2386,44 +2001,19 @@ is cleared first.
 Splitting behaves identically to field splitting, described above.
 .TP
 .BI sprintf( fmt , " expr-list" )
-Prints
+prints
 .I expr-list
 according to
 .IR fmt ,
 and returns the resulting string.
 .TP
-.BI strtonum( str )
-Examines
-.IR str ,
-and returns its numeric value.
-If
-.I str
-begins
-with a leading
-.BR 0 ,
-.B strtonum()
-assumes that
-.I str
-is an octal number.
-If
-.I str
-begins
-with a leading
-.B 0x
-or
-.BR 0X ,
-.B strtonum()
-assumes that
-.I str
-is a hexadecimal number.
-.TP
 \fBsub(\fIr\fB, \fIs \fR[\fB, \fIt\fR]\fB)\fR
-Just like
+just like
 .BR gsub() ,
 but only the first matching substring is replaced.
 .TP
 \fBsubstr(\fIs\fB, \fIi \fR[\fB, \fIn\fR]\fB)\fR
-Returns the at most
+returns the at most
 .IR n -character
 substring of
 .I s
@@ -2436,7 +2026,7 @@ is omitted, the rest of
 is used.
 .TP
 .BI tolower( str )
-Returns a copy of the string
+returns a copy of the string
 .IR str ,
 with all the upper-case characters in
 .I str
@@ -2444,58 +2034,27 @@ translated to their corresponding lower-case counterparts.
 Non-alphabetic characters are left unchanged.
 .TP
 .BI toupper( str )
-Returns a copy of the string
+returns a copy of the string
 .IR str ,
 with all the lower-case characters in
 .I str
 translated to their corresponding upper-case counterparts.
 Non-alphabetic characters are left unchanged.
 .SS Time Functions
+.PP
 Since one of the primary uses of \*(AK programs is processing log files
 that contain time stamp information,
 .I gawk
-provides the following functions for obtaining time stamps and
+provides the following two functions for obtaining time stamps and
 formatting them.
 .PP
 .TP "\w'\fBsystime()\fR'u+1n"
-\fBmktime(\fIdatespec\fB)\fR
-Rurns
-.I datespec
-into a time stamp of the same form as returned by
-.BR systime() .
-The
-.I datespec
-is a string of the form
-.IR "YYYY MM DD HH MM SS[ DST]" .
-The contents of the string are six or seven numbers representing respectively
-the full year including century,
-the month from 1 to 12,
-the day of the month from 1 to 31,
-the hour of the day from 0 to 23,
-the minute from 0 to 59,
-and the second from 0 to 60,
-and an optional daylight saving flag.
-The values of these numbers need not be within the ranges specified;
-for example, an hour of \-1 means 1 hour before midnight.
-The origin-zero Gregorian calendar is assumed,
-with year 0 preceding year 1 and year \-1 preceding year 0.
-The time is assumed to be in the local timezone.
-If the daylight saving flag is positive,
-the time is assumed to be daylight saving time;
-if zero, the time is assumed to be standard time;
-and if negative (the default),
-.B mktime()
-attempts to determine whether daylight saving time is in effect
-for the specified time.
-If
-.I datespec
-does not contain enough elements or if the resulting time
-is out of range,
-.B mktime()
-returns \-1.
+.B systime()
+returns the current time of day as the number of seconds since the Epoch
+(Midnight UTC, January 1, 1970 on \*(PX systems).
 .TP
 \fBstrftime(\fR[\fIformat \fR[\fB, \fItimestamp\fR]]\fB)\fR
-Formats
+formats
 .I timestamp
 according to the specification in
 .IR format.
@@ -2510,7 +2069,7 @@ If
 .I format
 is missing, a default format equivalent to the output of
 .IR date (1)
-is used.
+will be used.
 See the specification for the
 .B strftime()
 function in \*(AN C for the format conversions that are
@@ -2523,113 +2082,68 @@ if that version was used to build
 .IR gawk ,
 then all of the conversions described in that man page are available to
 .IR gawk.
+.SS String Constants
+.PP
+String constants in \*(AK are sequences of characters enclosed
+between double quotes (\fB"\fR).  Within strings, certain
+.I "escape sequences"
+are recognized, as in C.  These are:
+.PP
+.TP \w'\fB\e\^\fIddd\fR'u+1n
+.B \e\e
+A literal backslash.
 .TP
-.B systime()
-Returns the current time of day as the number of seconds since the Epoch
-(1970-01-01 00:00:00 UTC on \*(PX systems).
-.SS Bit Manipulations Functions
-Starting with version 3.1 of
-.IR gawk ,
-the following bit manipulation functions are available.
-They work by converting double-precision floating point
-values to
-.B "unsigned long"
-integers, doing the operation, and then converting the
-result back to floating point.
-The functions are:
-.TP "\w'\fBrshift(\fIval\fB, \fIcount\fB)\fR'u+2n"
-\fBand(\fIv1\fB, \fIv2\fB)\fR
-Return the bitwise AND of the values provided by
-.I v1
-and
-.IR v2 .
+.B \ea
+The \*(lqalert\*(rq character; usually the \s-1ASCII\s+1 \s-1BEL\s+1 character.
 .TP
-\fBcompl(\fIval\fB)\fR
-Return the bitwise complement of
-.IR val .
+.B \eb
+backspace.
 .TP
-\fBlshift(\fIval\fB, \fIcount\fB)\fR
-Return the value of
-.IR val ,
-shifted left by
-.I count
-bits.
+.B \ef
+form-feed.
 .TP
-\fBor(\fIv1\fB, \fIv2\fB)\fR
-Return the bitwise OR of the values provided by
-.I v1
-and
-.IR v2 .
+.B \en
+newline.
 .TP
-\fBrshift(\fIval\fB, \fIcount\fB)\fR
-Return the value of
-.IR val ,
-shifted right by
-.I count
-bits.
+.B \er
+carriage return.
 .TP
-\fBxor(\fIv1\fB, \fIv2\fB)\fR
-Return the bitwise XOR of the values provided by
-.I v1
-and
-.IR v2 .
-.PP
-.SS Internationalization Functions
-Starting with version 3.1 of
-.IR gawk ,
-the following functions may be used from within your AWK program for
-translating strings at run-time.
-For full details, see \*(EP.
+.B \et
+horizontal tab.
 .TP
-\fBbindtextdomain(\fIdirectory \fR[\fB, \fIdomain\fR]\fB)\fR
-Specifies the directory where
-.I gawk
-looks for the
-.B \&.mo
-files, in case they
-will not or cannot be placed in the ``standard'' locations
-(e.g., during testing).
-It returns the directory where
-.I domain
-is ``bound.''
-.sp .5
-The default
-.I domain
-is the value of
-.BR TEXTDOMAIN .
-If
-.I directory
-is the null string (\fB""\fR), then
-.B bindtextdomain()
-returns the current binding for the
-given
-.IR domain .
-.TP
-\fBdcgettext(\fIstring \fR[\fB, \fIdomain \fR[\fB, \fIcategory\fR]]\fB)\fR
-Returns the translation of
-.I string
-in
-text domain
-.I domain
-for locale category
-.IR category .
-The default value for
-.I domain
-is the current value of
-.BR TEXTDOMAIN .
-The default value for
-.I category
-is \fB"LC_MESSAGES"\fR.
-.sp .5
-If you supply a value for
-.IR category ,
-it must be a string equal to
-one of the known locale categories described
-in \*(EP.
-You must also supply a text domain.  Use
-.B TEXTDOMAIN
-if you want to use the current domain.
-.SH USER-DEFINED FUNCTIONS
+.B \ev
+vertical tab.
+.TP
+.BI \ex "\^hex digits"
+The character represented by the string of hexadecimal digits following
+the
+.BR \ex .
+As in \*(AN C, all following hexadecimal digits are considered part of
+the escape sequence.
+(This feature should tell us something about language design by committee.)
+E.g., \fB"\ex1B"\fR is the \s-1ASCII\s+1 \s-1ESC\s+1 (escape) character.
+.TP
+.BI \e ddd
+The character represented by the 1-, 2-, or 3-digit sequence of octal
+digits.
+E.g., \fB"\e033"\fR is the \s-1ASCII\s+1 \s-1ESC\s+1 (escape) character.
+.TP
+.BI \e c
+The literal character
+.IR c\^ .
+.PP
+The escape sequences may also be used inside constant regular expressions
+(e.g.,
+.B "/[\ \et\ef\en\er\ev]/"
+matches whitespace characters).
+.PP
+In compatibility mode, the characters represented by octal and
+hexadecimal escape sequences are treated literally when used in
+regexp constants.  Thus,
+.B /a\e52b/
+is equivalent to
+.BR /a\e*b/ .
+.SH FUNCTIONS
 Functions in \*(AK are defined as follows:
 .PP
 .RS
@@ -2649,7 +2163,7 @@ real parameters by extra spaces in the parameter list.  For example:
 .RS
 .ft B
 .nf
-function  f(p, q,     a, b)    # a and b are local
+function  f(p, q,     a, b)    # a & b are local
 {
        \&.\|.\|.
 }
@@ -2679,7 +2193,7 @@ If
 .B \-\^\-lint
 has been provided,
 .I gawk
-warns about calls to undefined functions at parse time,
+will warn about calls to undefined functions at parse time,
 instead of at run time.
 Calling an undefined function at run time is a fatal error.
 .PP
@@ -2687,45 +2201,6 @@ The word
 .B func
 may be used in place of
 .BR function .
-.SH DYNAMICALLY LOADING NEW FUNCTIONS
-Beginning with version 3.1 of
-.IR gawk ,
-you can dynamically add new built-in functions to the running
-.I gawk
-interpreter.
-The full details are beyond the scope of this manual page;
-see \*(EP for the details.
-.PP
-.TP 8
-\fBextension(\fIobject\fB, \fIfunction\fB)\fR
-Dynamically link the shared object file named by
-.IR object ,
-and invoke
-.I function
-in that object, to perform initialization.
-These should both be provided as strings.
-Returns the value returned by
-.IR function .
-.PP
-.ft B
-This function is provided and documented in \*(EP,
-but everything about this feature is likely to change
-in the next release.
-We STRONGLY recommend that you do not use this feature
-for anything that you aren't willing to redo.
-.ft R
-.SH SIGNALS
-.I pgawk
-accepts two signals.
-.B SIGUSR1
-causes it to dump a profile and function call stack to the
-profile file, which is either
-.BR awkprof.out ,
-or whatever file was named with the
-.B \-\^\-profile
-option.  It then continues to run.
-.B SIGHUP
-causes it to dump the profile and function call stack and then exit.
 .SH EXAMPLES
 .nf
 Print and sort the login names of all users:
@@ -2754,84 +2229,23 @@ Concatenate and line number (a variation on a theme):
        { print NR, $0 }
 .ft R
 .fi
-.SH INTERNATIONALIZATION
-.PP
-String constants are sequences of characters enclosed in double
-quotes.  In non-English speaking environments, it is possible to mark
-strings in the \*(AK program as requiring translation to the native
-natural language. Such strings are marked in the \*(AK program with
-a leading underscore (\*(lq_\*(rq).  For example,
-.sp
-.RS
-.ft B
-gawk 'BEGIN { print "hello, world" }'
-.RE
-.sp
-.ft R
-always prints
-.BR "hello, world" .
-But,
-.sp
-.RS
-.ft B
-gawk 'BEGIN { print _"hello, world" }'
-.RE
-.sp
-.ft R
-might print
-.B "bonjour, monde"
-in France.
-.PP
-There are several steps involved in producing and running a localizable
-\*(AK program.
-.TP "\w'4.'u+2n"
-1.
-Add a
-.B BEGIN
-action to assign a value to the
-.B TEXTDOMAIN
-variable to set the text domain to a name associated with your program.
-.sp
-.ti +5n
-.ft B
-BEGIN { TEXTDOMAIN = "myprog" }
-.ft R
-.sp
-This allows
-.I gawk
-to find the
-.B \&.mo
-file associated with your program.
-Without this step,
-.I gawk
-uses the
-.B messages
-text domain,
-which likely does not contain translations for your program.
-.TP
-2.
-Mark all strings that should be translated with leading underscores.
-.TP
-3.
-If necessary, use the
-.B dcgettext()
-and/or
-.B bindtextdomain()
-functions in your program, as appropriate.
-.TP
-4.
-Run
-.B "gawk \-\^\-gen\-po \-f myprog.awk > myprog.po"
-to generate a
-.B \&.po
-file for your program.
-.TP
-5.
-Provide appropriate translations, and build and install a corresponding
-.B \&.mo
-file.
-.PP
-The internationalization features are described in full detail in \*(EP.
+.SH SEE ALSO
+.IR egrep (1),
+.IR getpid (2),
+.IR getppid (2),
+.IR getpgrp (2),
+.IR getuid (2),
+.IR geteuid (2),
+.IR getgid (2),
+.IR getegid (2),
+.IR getgroups (2)
+.PP
+.IR "The AWK Programming Language" ,
+Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger,
+Addison-Wesley, 1988.  ISBN 0-201-07981-X.
+.PP
+.IR "Effective AWK Programming" ,
+Edition 1.0, published by the Free Software Foundation, 1995.
 .SH POSIX COMPATIBILITY
 A primary goal for
 .I gawk
@@ -2842,10 +2256,13 @@ To this end,
 .I gawk
 incorporates the following user visible
 features which are not described in the \*(AK book,
-but are part of the Bell Laboratories version of
+but are part of the Bell Labs version of
 .IR awk ,
 and are in the \*(PX standard.
 .PP
+The
+.B \-v
+option for assigning variables before program execution starts is new.
 The book indicates that command line variable assignment happens when
 .I awk
 would otherwise open the argument as a file, which is after the
@@ -2858,11 +2275,9 @@ the
 block was run.  Applications came to depend on this \*(lqfeature.\*(rq
 When
 .I awk
-was changed to match its documentation, the
-.B \-v
-option for assigning variables before program execution was added to
+was changed to match its documentation, this option was added to
 accommodate applications that depended upon the old behavior.
-(This feature was agreed upon by both the Bell Laboratories and the \*(GN developers.)
+(This feature was agreed upon by both the AT&T and \*(GN developers.)
 .PP
 The
 .B \-W
@@ -2872,7 +2287,7 @@ When processing arguments,
 .I gawk
 uses the special option \*(lq\-\^\-\*(rq to signal the end of
 arguments.
-In compatibility mode, it warns about but otherwise ignores
+In compatibility mode, it will warn about, but otherwise ignore,
 undefined options.
 In normal operation, such arguments are passed on to the \*(AK program for
 it to process.
@@ -2900,61 +2315,13 @@ and
 .BR \ev
 escape sequences (done originally in
 .I gawk
-and fed back into the Bell Laboratories version); the
+and fed back into AT&T's); the
 .B tolower()
 and
 .B toupper()
-built-in functions (from the Bell Laboratories version); and the \*(AN C conversion specifications in
+built-in functions (from AT&T); and the \*(AN C conversion specifications in
 .B printf
-(done first in the Bell Laboratories version).
-.SH HISTORICAL FEATURES
-There are two features of historical \*(AK implementations that
-.I gawk
-supports.
-First, it is possible to call the
-.B length()
-built-in function not only with no argument, but even without parentheses!
-Thus,
-.RS
-.PP
-.ft B
-a = length     # Holy Algol 60, Batman!
-.ft R
-.RE
-.PP
-is the same as either of
-.RS
-.PP
-.ft B
-a = length()
-.br
-a = length($0)
-.ft R
-.RE
-.PP
-This feature is marked as \*(lqdeprecated\*(rq in the \*(PX standard, and
-.I gawk
-issues a warning about its use if
-.B \-\^\-lint
-is specified on the command line.
-.PP
-The other feature is the use of either the
-.B continue
-or the
-.B break
-statements outside the body of a
-.BR while ,
-.BR for ,
-or
-.B do
-loop.  Traditional \*(AK implementations have treated such usage as
-equivalent to the
-.B next
-statement.
-.I Gawk
-supports this usage if
-.B \-\^\-traditional
-has been specified.
+(done first in AT&T's version).
 .SH GNU EXTENSIONS
 .I Gawk
 has a number of extensions to \*(PX
@@ -2972,23 +2339,15 @@ The following features of
 are not available in
 \*(PX
 .IR awk .
-.\" Environment vars and startup stuff
-.TP "\w'\(bu'u+1n"
-\(bu
-No path search is performed for files named via the
-.B \-f
-option.  Therefore the
-.B AWKPATH
-environment variable is not special.
-.\" POSIX and language recognition issues
-.TP
+.RS
+.TP \w'\(bu'u+1n
 \(bu
 The
 .B \ex
 escape sequence.
 (Disabled with
 .BR \-\^\-posix .)
-.TP
+.TP \w'\(bu'u+1n
 \(bu
 The
 .B fflush()
@@ -2997,26 +2356,22 @@ function.
 .BR \-\^\-posix .)
 .TP
 \(bu
-The ability to continue lines after
-.B ?
+The
+.BR systime(),
+.BR strftime(),
 and
-.BR : .
-(Disabled with
-.BR \-\^\-posix .)
+.B gensub()
+functions.
 .TP
 \(bu
-Octal and hexadecimal constants in AWK programs.
-.\" Special variables
+The special file names available for I/O redirection are not recognized.
 .TP
 \(bu
 The
 .BR ARGIND ,
-.BR BINMODE ,
 .BR ERRNO ,
-.BR LINT ,
-.B  RT
 and
-.B  TEXTDOMAIN
+.B RT
 variables are not special.
 .TP
 \(bu
@@ -3030,26 +2385,11 @@ The
 variable and fixed-width field splitting.
 .TP
 \(bu
-The
-.B PROCINFO
-array is not available.
-.\" I/O stuff
-.TP
-\(bu
 The use of
 .B RS
 as a regular expression.
 .TP
 \(bu
-The special file names available for I/O redirection are not recognized.
-.TP
-\(bu
-The
-.B |&
-operator for creating co-processes.
-.\" Changes to standard awk functions
-.TP
-\(bu
 The ability to split out individual characters using the null string
 as the value of
 .BR FS ,
@@ -3057,75 +2397,33 @@ and as the third argument to
 .BR split() .
 .TP
 \(bu
-The optional second argument to the
-.B close()
-function.
-.TP
-\(bu
-The optional third argument to the
-.B match()
-function.
-.TP
-\(bu
-The ability to use positional specifiers with
-.B printf
-and
-.BR sprintf() .
-.\" New keywords or changes to keywords
-.TP
-\(bu
-The use of
-.BI delete " array"
-to delete the entire contents of an array.
+No path search is performed for files named via the
+.B \-f
+option.  Therefore the
+.B AWKPATH
+environment variable is not special.
 .TP
 \(bu
 The use of
 .B "nextfile"
 to abandon processing of the current input file.
-.\" New functions
-.TP
-\(bu
-The
-.BR and() ,
-.BR asort() ,
-.BR bindtextdomain() ,
-.BR compl() ,
-.BR dcgettext() ,
-.BR gensub() ,
-.BR lshift() ,
-.BR mktime() ,
-.BR or() ,
-.BR rshift() ,
-.BR strftime() ,
-.BR strtonum() ,
-.B systime()
-and
-.B xor()
-functions.
-.\" I18N stuff
-.TP
-\(bu
-Localizable strings.
-.\" Extending gawk
 .TP
 \(bu
-Adding new built-in functions dynamically with the
-.B extension()
-function.
+The use of
+.BI delete " array"
+to delete the entire contents of an array.
+.RE
 .PP
-The \*(AK book does not define the return value of the
+The AWK book does not define the return value of the
 .B close()
 function.
-.IR Gawk\^ "'s"
+.IR Gawk\^ 's
 .B close()
 returns the value from
 .IR fclose (3),
 or
 .IR pclose (3),
-when closing an output file or pipe, respectively.
-It returns the process's exit status when closing an input pipe.
-The return value is \-1 if the named file, pipe
-or co-process was not opened with a redirection.
+when closing a file or pipe, respectively.
 .PP
 When
 .I gawk
@@ -3138,7 +2436,7 @@ argument to the
 .B \-F
 option is \*(lqt\*(rq, then
 .B FS
-is set to the tab character.
+will be set to the tab character.
 Note that typing
 .B "gawk \-F\et \&.\|.\|."
 simply causes the shell to quote the \*(lqt,\*(rq, and does not pass
@@ -3150,14 +2448,14 @@ This behavior also does not occur if
 .B \-\^\-posix
 has been specified.
 To really get a tab character as the field separator, it is best to use
-single quotes:
+quotes:
 .BR "gawk \-F'\et' \&.\|.\|." .
 .ig
 .PP
 If
 .I gawk
-was compiled for debugging, it
-accepts the following additional options:
+was compiled for debugging, it will
+accept the following additional options:
 .TP
 .PD 0
 .B \-Wparsedebug
@@ -3174,17 +2472,55 @@ This option should only be of interest to the
 maintainers, and may not even be compiled into
 .IR gawk .
 ..
-.SH ENVIRONMENT VARIABLES
-The
-.B AWKPATH
-environment variable can be used to provide a list of directories that
+.SH HISTORICAL FEATURES
+There are two features of historical \*(AK implementations that
 .I gawk
-searches when looking for files named via the
-.B \-f
-and
-.B \-\^\-file
-options.
+supports.
+First, it is possible to call the
+.B length()
+built-in function not only with no argument, but even without parentheses!
+Thus,
+.RS
+.PP
+.ft B
+a = length     # Holy Algol 60, Batman!
+.ft R
+.RE
 .PP
+is the same as either of
+.RS
+.PP
+.ft B
+a = length()
+.br
+a = length($0)
+.ft R
+.RE
+.PP
+This feature is marked as \*(lqdeprecated\*(rq in the \*(PX standard, and
+.I gawk
+will issue a warning about its use if
+.B \-\^\-lint
+is specified on the command line.
+.PP
+The other feature is the use of either the
+.B continue
+or the
+.B break
+statements outside the body of a
+.BR while ,
+.BR for ,
+or
+.B do
+loop.  Traditional \*(AK implementations have treated such usage as
+equivalent to the
+.B next
+statement.
+.I Gawk
+will support this usage if
+.B \-\^\-traditional
+has been specified.
+.SH ENVIRONMENT VARIABLES
 If
 .B POSIXLY_CORRECT
 exists in the environment, then
@@ -3196,47 +2532,54 @@ If
 .B \-\^\-lint
 has been specified,
 .I gawk
-issues a warning message to this effect.
-.SH SEE ALSO
-.IR egrep (1),
-.IR getpid (2),
-.IR getppid (2),
-.IR getpgrp (2),
-.IR getuid (2),
-.IR geteuid (2),
-.IR getgid (2),
-.IR getegid (2),
-.IR getgroups (2)
+will issue a warning message to this effect.
 .PP
-.IR "The AWK Programming Language" ,
-Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger,
-Addison-Wesley, 1988.  ISBN 0-201-07981-X.
-.PP
-\*(EP,
-Edition 3.0, published by the Free Software Foundation, 2001.
+The
+.B AWKPATH
+environment variable can be used to provide a list of directories that
+.I gawk
+will search when looking for files named via the
+.B \-f
+and
+.B \-\^\-file
+options.
 .SH BUGS
 The
 .B \-F
 option is not necessary given the command line variable assignment feature;
 it remains only for backwards compatibility.
 .PP
+If your system actually has support for
+.B /dev/fd
+and the associated
+.BR /dev/stdin ,
+.BR /dev/stdout ,
+and
+.B /dev/stderr
+files, you may get different output from
+.I gawk
+than you would get on a system without those files.  When
+.I gawk
+interprets these files internally, it synchronizes output to the standard
+output with output to
+.BR /dev/stdout ,
+while on a system with those files, the output is actually to different
+open files.
+Caveat Emptor.
+.PP
 Syntactically invalid single character programs tend to overflow
 the parse stack, generating a rather unhelpful message.  Such programs
 are surprisingly difficult to diagnose in the completely general case,
 and the effort to do so really is not worth it.
-.ig
-.PP
-.I Gawk
-suffers from ``feeping creaturism.''
-It's too bad
-.I perl
-is so inelegant.
-..
+.SH VERSION INFORMATION
+This man page documents
+.IR gawk ,
+version 3.0.6.
 .SH AUTHORS
 The original version of \*(UX
 .I awk
 was designed and implemented by Alfred Aho,
-Peter Weinberger, and Brian Kernighan of Bell Laboratories.  Brian Kernighan
+Peter Weinberger, and Brian Kernighan of AT&T Bell Labs.  Brian Kernighan
 continues to maintain and enhance it.
 .PP
 Paul Rubin and Jay Fenlason,
@@ -3257,22 +2600,14 @@ The initial DOS port was done by Conrad Kwok and Scott Garfinkle.
 Scott Deifik is the current DOS maintainer.  Pat Rankin did the
 port to VMS, and Michal Jaegermann did the port to the Atari ST.
 The port to OS/2 was done by Kai Uwe Rommel, with contributions and
-help from Darrel Hankerson.  Fred Fish supplied support for the Amiga,
-Stephen Davies provided the Tandem port,
-and Martin Brown provided the BeOS port.
-.SH VERSION INFORMATION
-This man page documents
-.IR gawk ,
-version 3.1.0.
+help from Darrel Hankerson.  Fred Fish supplied support for the Amiga.
 .SH BUG REPORTS
 If you find a bug in
 .IR gawk ,
 please send electronic mail to
 .BR bug-gawk@gnu.org .
 Please include your operating system and its revision, the version of
-.I gawk
-(from
-.BR "gawk \-\^\-version" ),
+.IR gawk ,
 what C compiler you used to compile it, and a test program
 and data that are as small as possible for reproducing the problem.
 .PP
@@ -3295,11 +2630,11 @@ developers occasionally read this newsgroup, posting bug reports there
 is an unreliable way to report bugs.  Instead, please use the electronic mail
 addresses given above.
 .SH ACKNOWLEDGEMENTS
-Brian Kernighan of Bell Laboratories
+Brian Kernighan of Bell Labs
 provided valuable assistance during testing and debugging.
 We thank him.
 .SH COPYING PERMISSIONS
-Copyright \(co 1989, 1991\-2001 Free Software Foundation, Inc.
+Copyright \(co 1996\-2000 Free Software Foundation, Inc.
 .PP
 Permission is granted to make and distribute verbatim copies of
 this manual page provided the copyright notice and this permission
index f48deed..d66ec87 100644 (file)
@@ -1,20 +1,8 @@
+.\"*******************************************************************
 .\"
-.\"   Copyright (C) 1994-1999 Free Software Foundation, Inc.
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.\"   Permission is granted to make and distribute verbatim copies of
-.\"this
-.\"manual provided the copyright notice and this permission notice are
-.\"preserved on all copies.
-.\"
-.\"   Permission is granted to copy and distribute modified versions of
-.\"this manual under the conditions for verbatim copying, provided that
-.\"the entire resulting derived work is distributed under the terms of a
-.\"permission notice identical to this one.
-.\"
-.\"   Permission is granted to copy and distribute translations of this
-.\"manual into another language, under the above conditions for modified
-.\"versions, except that this permission notice may be stated in a
-.\"translation approved by the Foundation.
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2001 Yuichi SATO
 .\"         all rights reserved.
 .SH 名前
 igawk \- インクルードファイルを使う gawk
 .SH 書式
-.B igawk
-[ all
-.I gawk
-options ]
-.B \-f
-.I program-file
-[
-.B \-\^\-
-] file .\^.\^.
+\fBigawk\fP [ all \fIgawk\fP options ] \fB\-f\fP \fIprogram\-file\fP [ \fB\-\^\-\fP ] file
+\&.\^.\^.
 .br
-.B igawk
-[ all
-.I gawk
-options ]
-[
-.B \-\^\-
-]
-.I program-text
-file .\^.\^.
+\fBigawk\fP [ all \fIgawk\fP options ] [ \fB\-\^\-\fP ] \fIprogram\-text\fP file .\^.\^.
 .SH 説明
-.I igawk
-は
-.IR gawk (1)
-に「インクルードファイル」の機能を追加する簡単なシェルスクリプトである。
+\fIigawk\fP は \fIgawk\fP(1)  に「インクルードファイル」の機能を追加する簡単なシェルスクリプトである。
 .PP
-.I igawk
-で使う AWK プログラムは
-.I gawk
-と同じであるが、
-カレントディレクトリまたは検索パスのディレクトリにあるファイル
-.B getopt.awk
-をインクルードするために、
+\fIigawk\fP で使う AWK プログラムは \fIgawk\fP と同じであるが、 カレントディレクトリまたは検索パスのディレクトリにあるファイル
+\fBgetopt.awk\fP をインクルードするために、
 .RS
 .sp
-.ft B
-@include getopt.awk
-.ft R
+\fB@include getopt.awk\fP
 .sp
 .RE
 のような行をプログラムに書くことができる。
 .SH オプション
-AWK 言語と
-.I gawk
-がサポートするオプションについての完全な説明は、
-.IR gawk (1)
-を参照すること。
+AWK 言語と \fIgawk\fP がサポートするオプションについての完全な説明は、 \fIgawk\fP(1)  を参照すること。
 .SH 例
 .nf
-.ft B
-cat << EOF > test.awk
-@include getopt.awk
+\fBcat << EOF > test.awk
+@include getopt.awk\fP
 .sp
-BEGIN {
+\fBBEGIN {
        while (getopt(ARGC, ARGV, "am:q") != \-1)
                \&.\^.\^.
 }
-EOF
+EOF\fP
 .sp
-igawk \-f test.awk
-.ft R
+\fBigawk \-f test.awk\fP
 .fi
 .SH 関連項目
-.IR gawk (1)
+\fIgawk\fP(1)
 .PP
-.IR "Effective AWK Programming" ,
-Edition 1.0, published by the Free Software Foundation, 1995.
+\fIEffective AWK Programming\fP, Edition 1.0, published by the Free Software
+Foundation, 1995.
 .SH 著者
-Arnold Robbins
-.RB ( arnold@skeeve.com ).
+Arnold Robbins (\fBarnold@skeeve.com\fP).
index 9988b34..be37c26 100644 (file)
@@ -1,2 +1,2 @@
-:GNU gawk:3.0.6=>3.1.0:2001/05/29:gawk:1:2000/02/05::man-jp@jp.FreeBSD.org:FreeBSD jpman project:http://www.jp.freebsd.org/man-jp/
+:GNU gawk:3.0.6=>3.1.0:2001/05/29:gawk:1:2000/02/05::man-jp@jp.FreeBSD.org:FreeBSD jpman project:http://www.jp.freebsd.org/man-jp/
 ○:GNU gawk:3.1.0:1999/11/03:igawk:1:2001/07/14::ysato@h4.dion.ne.jp:Yuichi SATO: