WC Command

The WC command display count of a files (size, number of lines or words).


WC [/L] [/C] [/M] [/W] [files ...]

Print files counts and the associated total if several files have be specified.

The counts are printed in the following order. If any count have been omited, these are not displayed by the command.

line_number word_number byte_number character_numbers file

If no switch was supplied to pBat, the default command is:

WC /C files ...


Not available on cmd.exe. Available since 217.1.

See Also

Command list, XARGS command