count
for all named files is output on a separate line
following the last file count.
By default, the standard output contains a line for each input file of the form:
lines words bytes file_name
With all options specified the output line for each input file is of the form:
paras lines words chars bytes file_name
wc uses Perl's use locale
pragma.
file.
The algorithm employed
counts lumped groups of lines that do not contain only zero or more space
characters (/^\s*$/
). This regular expression is sensitive to locale settings.
file.
file
as determined by perl's /\w+/
regular expression which is locale sensitive.
file.
This is implemented
with a multi-byte character counting regular expression m/$encoding/gox
. The $encoding
defaults to one sensitive to well formed UTF-8 encodings (one to six byte
characters) though this may be altered to other encodings by alteration of
the program code. Note that some 8 bit single byte characters will be
missed by the UTF-8 character counter since such characters fall outside
the UTF-8 encoding.
file.
This is implemented with
perl's perlfunc
built in function.
PERLLIB
or PERL5LIB
since it uses File, locale, and strict internally.
This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.