"COUNT" "1" "15 Feb 2008" "4.x" "HTML-XML-utils"
Table of contents
count - count elements and attributes in HTML or XML files
count
[ file ]
The
count
command counts the number of elements and attributes of each type that
appears in the input and prints a report on stdout.
The following operand is supported:
-
file
-
The name of an HTML or XML file. If absent, standard input is read
instead.
The following exit values are returned:
-
0
-
Successful completion.
-
>
-
An error occurred in the parsing of the HTML or XML file.
count
will try to recover from the error and produce output anyway.
Don't trust the output if there were errors in the input.