diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-09-23 12:42:32 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-09-23 12:42:32 +0300 |
commit | 09fa9d26d41cc70e63469522d71674883bae5521 (patch) | |
tree | 70818c9b5e6c274767289dd836ea296389f538c5 /doc/gawktexi.in | |
parent | 0304433c77311b42727485bf187d80665b0eb34c (diff) | |
download | egawk-09fa9d26d41cc70e63469522d71674883bae5521.tar.gz egawk-09fa9d26d41cc70e63469522d71674883bae5521.tar.bz2 egawk-09fa9d26d41cc70e63469522d71674883bae5521.zip |
Documentation updates.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r-- | doc/gawktexi.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in index d915efd5..b5ce6cd3 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -11323,6 +11323,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 |