• Antelope Release 5.10 Linux CentOS release 7.6.1810 (Core) 3.10.0 2020-05-12

 

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

The following options may be repeated as necessary to specify several different regular expressions.

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
Printer icon