Module Name: src Committed By: wiz Date: Fri Jun 10 08:03:26 UTC 2016
Modified Files: src/external/bsd/tre/bin: agrep.1 Log Message: Sort option descriptions. Use Mt. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/tre/bin/agrep.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/tre/bin/agrep.1 diff -u src/external/bsd/tre/bin/agrep.1:1.2 src/external/bsd/tre/bin/agrep.1:1.3 --- src/external/bsd/tre/bin/agrep.1:1.2 Fri Jun 10 05:11:17 2016 +++ src/external/bsd/tre/bin/agrep.1 Fri Jun 10 08:03:26 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: agrep.1,v 1.2 2016/06/10 05:11:17 agc Exp $ +.\" $NetBSD: agrep.1,v 1.3 2016/06/10 08:03:26 wiz Exp $ .Dd January 29, 2015 .Dt AGREP 1 .Os @@ -51,9 +51,19 @@ surround the match; they cannot be count .El .Ss Approximate matching settings .Bl -tag -width 10n +.It Fl Ns Ar # +Select records that have at most +.Ar # +errors +.Ar ( # +is a digit between 0 and 9). .It Fl D Ar num , Fl Fl delete-cost= Ns Ar num Set cost of missing characters to .Ar num . +.It Fl E num , Fl Fl max-errors= Ns Ar num +Select records that have at most +.Ar num +errors. .It Fl I Ar num , Fl Fl insert-cost= Ns Ar num Set cost of extra characters to .Ar num . @@ -66,16 +76,6 @@ will be the that of a deletion and an in 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. -.It Fl E num , Fl Fl max-errors= Ns Ar num -Select records that have at most -.Ar num -errors. -.It Fl Ns Ar # -Select records that have at most -.Ar # -errors -.Ar ( # -is a digit between 0 and 9). .El .Ss Miscellaneous .Bl -tag -width 10n @@ -93,19 +93,19 @@ can be any regular expression that does For example, using .Fl d Ar \"^From \" defines mail messages as records in a Mailbox format file. -.It Fl v , Fl Fl invert-match -Select non-matching records instead of matching records. -.It Fl V , Fl Fl version -Print version information and exit. +.It Fl Fl help +Display a brief help message and exit. .It Fl r , Fl Fl recursive If a directory is given as one of the command line arguments, look in every directory entry in the subdirectory, recursively. +.It Fl V , Fl Fl version +Print version information and exit. +.It Fl v , Fl Fl invert-match +Select non-matching records instead of matching records. .It Fl y , Fl Fl nothing Does nothing. This options exists only for compatibility with the non-free agrep program. -.It Fl Fl help -Display a brief help message and exit. .El .Ss Output control .Bl -tag -width 10n @@ -123,16 +123,25 @@ The default color is red. .It Fl c , Fl Fl count Only print a count of matching records per each input file, suppressing normal output. -.It Fl h , Fl Fl no-filename -Suppress the prefixing filename on output when multiple files are -searched. .It Fl H , Fl Fl with-filename Prefix each output record with the name of the input file where the record was read from. +.It Fl h , Fl Fl no-filename +Suppress the prefixing filename on output when multiple files are +searched. .It Fl l , Fl Fl files-with-matches Only print the name of each input file which contains at least one match, suppressing normal output. The scanning for each file will stop on the first match. +.It Fl M , Fl Fl delimiter-after +By default, the record delimiter is the newline character and is +output after the matching record. +If +.Fl d +is used, the record delimiter will be output before the matching +record. +This option causes the delimiter to be output after the +matching record. .It Fl n , Fl Fl record-number Prefix each output record with its sequence number in the input file. The number of the first record is 1. @@ -147,15 +156,6 @@ match within the record. The offset of the first character of the record is 0. The end position is given as the offset of the first character after the match. -.It Fl M , Fl Fl delimiter-after -By default, the record delimiter is the newline character and is -output after the matching record. -If -.Fl d -is used, the record delimiter will be output before the matching -record. -This option causes the delimiter to be output after the -matching record. .El .Pp With no @@ -199,7 +199,7 @@ is not specified, only exact matches are is a POSIX extended regular expression (ERE) with the TRE extensions. .Sh REPORTING BUGS Report bugs to the TRE mailing list -.Aq tre-gene...@lists.laurikari.net . +.Aq Mt tre-gene...@lists.laurikari.net . .Sh COPYRIGHT Copyright \(co 2002-2004 Ville Laurikari. .Pp