home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume22 / gawk2.11 / part15 / gawk.texinfo.07 < prev    next >
Text File  |  1990-06-07  |  7KB  |  180 lines

  1. Concatenating two strings means sticking them together, one after another,
  2. giving a new string.  For example, the string @samp{foo} concatenated with
  3. the string @samp{bar} gives the string @samp{foobar}.
  4. @xref{Concatenation}.@refill
  5.  
  6. @item Conditional Expression
  7. An expression using the @samp{?:} ternary operator, such as
  8. @code{@var{expr1} ? @var{expr2} : @var{expr3}}.  The expression
  9. @var{expr1} is evaluated; if the result is true, the value of the whole
  10. expression is the value of @var{expr2} otherwise the value is
  11. @var{expr3}.  In either case, only one of @var{expr2} and @var{expr3}
  12. is evaluated.  @xref{Conditional Exp}.@refill
  13.  
  14. @item Constant Regular Expression
  15. A constant regular expression is a regular expression written within
  16. slashes, such as @samp{/foo/}.  This regular expression is chosen
  17. when you write the @code{awk} program, and cannot be changed doing
  18. its execution.  @xref{Regexp Usage}.
  19.  
  20. @item Comparison Expression
  21. A relation that is either true or false, such as @code{(a < b)}.
  22. Comparison expressions are used in @code{if} and @code{while} statements,
  23. and in patterns to select which input records to process.
  24. @xref{Comparison Ops}.@refill
  25.  
  26. @item Curly Braces
  27. The characters @samp{@{} and @samp{@}}.  Curly braces are used in
  28. @code{awk} for delimiting actions, compound statements, and function
  29. bodies.@refill
  30.  
  31. @item Data Objects
  32. These are numbers and strings of characters.  Numbers are converted into
  33. strings and vice versa, as needed.  @xref{Conversion}.@refill
  34.  
  35. @item Dynamic Regular Expression
  36. A dynamic regular expression is a regular expression written as an
  37. ordinary expression.  It could be a string constant, such as
  38. @code{"foo"}, but it may also be an expression whose value may vary.
  39. @xref{Regexp Usage}.
  40.  
  41. @item Escape Sequences
  42. A special sequence of characters used for describing nonprinting
  43. characters, such as @samp{\n} for newline, or @samp{\033} for the ASCII
  44. ESC (escape) character.  @xref{Constants}.
  45.  
  46. @item Field
  47. When @code{awk} reads an input record, it splits the record into pieces
  48. separated by whitespace (or by a separator regexp which you can
  49. change by setting the built-in variable @code{FS}).  Such pieces are
  50. called fields.  @xref{Records}.@refill
  51.  
  52. @item Format
  53. Format strings are used to control the appearance of output in the
  54. @code{printf} statement.  Also, data conversions from numbers to strings
  55. are controlled by the format string contained in the built-in variable
  56. @code{OFMT}.  @xref{Control Letters}; also @pxref{Output Separators}.@refill
  57.  
  58. @item Function
  59. A specialized group of statements often used to encapsulate general
  60. or program-specific tasks.  @code{awk} has a number of built-in
  61. functions, and also allows you to define your own.  @xref{Built-in};
  62. also @pxref{User-defined}.
  63.  
  64. @item @code{gawk}
  65. The GNU implementation of @code{awk}.
  66.  
  67. @item Input Record
  68. A single chunk of data read in by @code{awk}.  Usually, an @code{awk} input
  69. record consists of one line of text.  @xref{Records}.@refill
  70.  
  71. @item Keyword
  72. In the @code{awk} language, a keyword is a word that has special
  73. meaning.  Keywords are reserved and may not be used as variable names.
  74.  
  75. The keywords of @code{awk} are:
  76. @code{if},
  77. @code{else},
  78. @code{while},
  79. @code{do@dots{}while},
  80. @code{for},
  81. @code{for@dots{}in},
  82. @code{break},
  83. @code{continue},
  84. @code{delete},
  85. @code{next},
  86. @code{function},
  87. @code{func},
  88. and @code{exit}.@refill
  89.  
  90. @item Lvalue
  91. An expression that can appear on the left side of an assignment
  92. operator.  In most languages, lvalues can be variables or array
  93. elements.  In @code{awk}, a field designator can also be used as an
  94. lvalue.@refill
  95.  
  96. @item Number
  97. A numeric valued data object.  The @code{gawk} implementation uses double
  98. precision floating point to represent numbers.@refill
  99.  
  100. @item Pattern
  101. Patterns tell @code{awk} which input records are interesting to which
  102. rules.
  103.  
  104. A pattern is an arbitrary conditional expression against which input is
  105. tested.  If the condition is satisfied, the pattern is said to @dfn{match}
  106. the input record.  A typical pattern might compare the input record against
  107. a regular expression.  @xref{Patterns}.@refill
  108.  
  109. @item Range (of input lines)
  110. A sequence of consecutive lines from the input file.  A pattern
  111. can specify ranges of input lines for @code{awk} to process, or it can
  112. specify single lines.  @xref{Patterns}.@refill
  113.  
  114. @item Recursion
  115. When a function calls itself, either directly or indirectly.
  116. If this isn't clear, refer to the entry for ``recursion''.
  117.  
  118. @item Redirection
  119. Redirection means performing input from other than the standard input
  120. stream, or output to other than the standard output stream.
  121.  
  122. You can redirect the output of the @code{print} and @code{printf} statements
  123. to a file or a system command, using the @samp{>}, @samp{>>}, and @samp{|}
  124. operators.  You can redirect input to the @code{getline} statement using
  125. the @samp{<} and @samp{|} operators.  @xref{Redirection}.@refill
  126.  
  127. @item Regular Expression
  128. See ``regexp''.
  129.  
  130. @item Regexp
  131. Short for @dfn{regular expression}.  A regexp is a pattern that denotes a
  132. set of strings, possibly an infinite set.  For example, the regexp
  133. @samp{R.*xp} matches any string starting with the letter @samp{R}
  134. and ending with the letters @samp{xp}.  In @code{awk}, regexps are
  135. used in patterns and in conditional expressions.  Regexps may contain
  136. escape sequences.  @xref{Regexp}.@refill
  137.  
  138. @item Rule
  139. A segment of an @code{awk} program, that specifies how to process single
  140. input records.  A rule consists of a @dfn{pattern} and an @dfn{action}.
  141. @code{awk} reads an input record; then, for each rule, if the input record
  142. satisfies the rule's pattern, @code{awk} executes the rule's action.
  143. Otherwise, the rule does nothing for that input record.@refill
  144.  
  145. @item Side Effect
  146. A side effect occurs when an expression has an effect aside from merely
  147. producing a value.  Assignment expressions, increment expressions and
  148. function calls have side effects.  @xref{Assignment Ops}.
  149.  
  150. @item Special File
  151. A file name interpreted internally by @code{gawk}, instead of being handed
  152. directly to the underlying operating system.  For example, @file{/dev/stdin}.
  153. @xref{Special Files}.
  154.  
  155. @item Stream Editor
  156. A program that reads records from an input stream and processes them one
  157. or more at a time.  This is in contrast with batch programs, which may
  158. expect to read their input files in entirety before starting to do
  159. anything, and with interactive programs, which require input from the
  160. user.@refill
  161.  
  162. @item String
  163. A datum consisting of a sequence of characters, such as @samp{I am a
  164. string}.  Constant strings are written with double-quotes in the
  165. @code{awk} language, and may contain @dfn{escape sequences}.
  166. @xref{Constants}.
  167.  
  168. @item Whitespace
  169. A sequence of blank or tab characters occurring inside an input record or a
  170. string.@refill
  171. @end table
  172.  
  173. @node Index, , Glossary, Top
  174. @unnumbered Index
  175. @printindex cp
  176.  
  177. @summarycontents
  178. @contents
  179. @bye
  180.