What is the windows equivalent of Linux command wc -l?

后端 未结 3 773
粉色の甜心
粉色の甜心 2021-01-06 05:50

I have a piece of code that is meant to send the following to the linux command line:

wc -l C:/inputdirectory/P*

However, I need

3条回答
  •  长情又很酷
    2021-01-06 06:13

    Courtesy of Eryk Sun:

    Try searching for "", i.e. an empty string; use only backslash as the path separator; and quote the path if it has spaces in it:

    find /c /v "" "C:\inputdirectory\P*"
    

提交回复
热议问题