How do I do a "word count" command in Windows Command Prompt
find
command could be used in windows cmd to find line count (with the /c
switch), word count etc.
http://rickardnobel.se/counting-lines-in-windows-command-prompt/
"Find" will be able to do the task similar to word count as RRM told.
Eg.
Query user | find /v /c ""
/v – Show any lines that don’t contain the string of words you specified./c - Count the number of lines that matches the word in fine.
Query user | find /i "active" /c
/i - Ignore case/c - Count the number of lines that matches the word in fine.