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
- TYPE ss64.com/nt/type.html
- FIND ss64.com/nt/find.html
Operating systems
- Windows
More
- Display the contents of a file in DOS or Windows Console
- Get current folder name in Windows Command Prompt
- Get full path to the current directory in DOS and Windows Command Prompt
- Get OS name in Windows Command Prompt
- Remove duplicate lines in a file (Windows Command Prompt)
- Sorting the contents of a file alphabetically (Windows Command Prompt)