Home | History | Annotate | Line # | Download | only in agrep
      1 Force PATTERN to match only whole words.  A "whole word" is a
      2 substring which either starts at the beginning or the record or is
      3 preceded by a non-word constituent character.  Similarly, the
      4 substring must either end at the end of the record or be followed by a
      5 non-word constituent character.  Word-constituent characters are
      6 alphanumerics (as defined by the current locale) and the underscore
      7 character.  Note that the non-word constituent characters must
      8 surround the match; they cannot be counted as errors.
      9 
     10 Set cost of incorrect characters to NUM.  Note that a deletion (a
     11 missing character) and an insertion (an extra character) together
     12 constitute a substituted character, but the cost will be the that of a
     13 deletion and an insertion added together.  Thus, if the const of a
     14 substitution is set to be larger than the sum of the costs of deletion
     15 and insertion, direct substitutions will never be done.
     16 
     17 Set the record delimiter regular expression to PATTERN.  The text
     18 between two delimiters, before the first delimiter, and after the last
     19 delimiter is considered to be a record.  The default record delimiter
     20 is the regexp "\n", so by default a record is a line.  PATTERN can be
     21 any regular expression that does not match the empty string.  For
     22 example, using -d "^From " defines mail messages as records in a
     23 Mailbox format file.
     24