From 09fa9d26d41cc70e63469522d71674883bae5521 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 23 Sep 2021 12:42:32 +0300 Subject: Documentation updates. --- doc/gawk.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/gawk.texi') diff --git a/doc/gawk.texi b/doc/gawk.texi index a3745eba..5e2ec5dd 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -11997,6 +11997,17 @@ can be used with @samp{~} and @samp{!~}, passed to one of the built-in functions listed above, or passed as a parameter to a user-defined function. @end itemize +You may use the @option{-v} option (@pxref{Options}) to assign a +strongly-typed regexp constant to a variable on the command line, like so: + +@example +gawk -v pattern='@@/something(interesting)+/' @dots{} +@end example + +@noindent +You may also make such assignments as regular command-line arguments +(@pxref{Other Arguments}). + You may use the @code{typeof()} built-in function (@pxref{Type Functions}) to determine if a variable or function parameter is -- cgit v1.2.3