aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawk.texi
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-09-23 12:43:50 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-09-23 12:43:50 +0300
commit0aa0451ebbbc6326d0ab785e40e6dd40fb93b77e (patch)
treeac1e821dbb9a6a599a781dd6b763404f68a3712f /doc/gawk.texi
parent026dc68781797e6829426d41e57b63710b8070ad (diff)
parent09fa9d26d41cc70e63469522d71674883bae5521 (diff)
downloadegawk-0aa0451ebbbc6326d0ab785e40e6dd40fb93b77e.tar.gz
egawk-0aa0451ebbbc6326d0ab785e40e6dd40fb93b77e.tar.bz2
egawk-0aa0451ebbbc6326d0ab785e40e6dd40fb93b77e.zip
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r--doc/gawk.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi
index c877c925..1bde9543 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -12005,6 +12005,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