KOMPX.COM or COMPMISCELLANEA.COM   

Count the number of lines in a file in Windows Command Prompt

Counting the number of lines in a file in Windows Command Prompt by TYPE and FIND commands. Equivalent to wc -l on Linux and Unix:


TYPE file.txt | FIND "" /V /C

Links

  1. TYPE ss64.com/nt/type.html
  2. FIND ss64.com/nt/find.html

Operating systems

More