diff options
| author | Gabor Kovesdan <gabor@FreeBSD.org> | 2011-05-03 19:33:09 +0000 |
|---|---|---|
| committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2011-05-03 19:33:09 +0000 |
| commit | 7e370ebd64e43d1ac59181c51ed9065a094d39d7 (patch) | |
| tree | 28a6b48ed3f1eff1d6eab2af016c684746c58035 /tests/agrep/records.input | |
Diffstat (limited to 'tests/agrep/records.input')
| -rw-r--r-- | tests/agrep/records.input | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/agrep/records.input b/tests/agrep/records.input new file mode 100644 index 000000000000..03c6b618b48f --- /dev/null +++ b/tests/agrep/records.input @@ -0,0 +1,23 @@ +Force PATTERN to match only whole words. A "whole word" is a +substring which either starts at the beginning or the record or is +preceded by a non-word constituent character. Similarly, the +substring must either end at the end of the record or be followed by a +non-word constituent character. Word-constituent characters are +alphanumerics (as defined by the current locale) and the underscore +character. Note that the non-word constituent characters must +surround the match; they cannot be counted as errors. + +Set cost of incorrect characters to NUM. Note that a deletion (a +missing character) and an insertion (an extra character) together +constitute a substituted character, but the cost will be the that of a +deletion and an insertion added together. Thus, if the const of a +substitution is set to be larger than the sum of the costs of deletion +and insertion, direct substitutions will never be done. + +Set the record delimiter regular expression to PATTERN. The text +between two delimiters, before the first delimiter, and after the last +delimiter is considered to be a record. The default record delimiter +is the regexp "\n", so by default a record is a line. PATTERN can be +any regular expression that does not match the empty string. For +example, using -d "^From " defines mail messages as records in a +Mailbox format file. |
