windows Counting Lines in the Windows Command Line This is a quick tip that I think everyone should know. If you want to count lines such as the following Unix command: $ cat *.EXT | wc -l You can do that easily in Windows with something like this: > type *.EXT | find /c /v