blob: 46d7c3c61fadf34fc5031c01574dd1e5fa4914ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
NAME
semicolons - count number of semicolons in code
SYNOPSIS
semicolons [-s] [file] ...
DESCRIPTION
semicolons counts the number of semicolons in code for each specified
file. semicolons will treat each file as a C source code or
C header file. If file is -, or if a file is not specified,
the standard input is read.
If more than one file is specified, each successfully
processed file will have its line count output in the format
"%s:%*s%zu\n", <file>, <some positive integer>, "", <#semicolons in code>
The total for all processed files is printed on the last line
with the format
"%zu\n", <total #semicolons in code>
If exactly one or no files are specified, this will be the
only line output.
OPTIONS
-s
Only output the last line. (The total over all files.)
SEE ALSO
braces(1)
|