NAME
cntlines - helper script for certify to count bad/good lines in files
SYNOPSIS
cntlines [-a] [-c regexp m] [-C re1,re2,.. m] [-n regexp m] [-v] [-x] filename ...
DESCRIPTION
cntlines counts lines matching each regular expression,
returning 0 if all conditions are satisfied; each filename
is counted separately.
OPTIONS
-
-a
Apply the requirements to the concatenation of all the files, rather
than to each file individually.
-
-v
Echo the option arguments (for arguments following -v).
The following options may be repeated
as necessary to specify several different regular expressions.
-
-c re m
contains at least m lines containing re
-
-C re,re,... m
foreach regular expression in the comma-separated list, require at least
m lines containing that re.
-
-n re m
no more than m lines containing re
-
-v
Be more verbose
-
-x
Require exactly the specified number of lines, no more, no less.
EXAMPLE
% cntlines -c cntlines 5 -n AUTHOR 1 - < cntlines.1
Only 4 lines with 'cntlines', not 5
lines with 'cntlines':
cntlines - helper script for certify to count bad/good lines in files
cntlines [-c regexp m] [-n regexp m] filename
cntlines counts lines matching each regular expression,
% cntlines -c cntlines 5 -n AUTHOR 2 - < cntline.1
2 lines with 'AUTHOR', more than 1
lines with 'AUTHOR':
% cntlines -c cntlines 5 -n AUTHOR 2 - < cntline.1
.SH AUTHOR
RETURN VALUES
Returns 0 if all conditions are satisfied, 1 otherwise.
SEE ALSO
certify(1)
AUTHOR
Daniel Quinlan