[tool]
findコマンドを使う。
アスタリスクもいける
最後が空行だとカウントされないバージョン
find /v /c "" sample.txt
find /v /c "" *.txt
カウントするにはパイプ経由にする
type sample.txt | find /c /v ""
ネタ元
[tool]
findコマンドを使う。
アスタリスクもいける
最後が空行だとカウントされないバージョン
find /v /c "" sample.txt
find /v /c "" *.txt
カウントするにはパイプ経由にする
type sample.txt | find /c /v ""
ネタ元