1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windowsでファイルの行数を取得する方法

Posted at

コマンド

find /v /c "" a.txt > b.txt

a.txt内の""か含まれない行1の行数2b.txtに保存します。

ただし、最終行が改行だけの場合はカウントされないので注意です。

オプションはfind /?に乗っています。

詳しくはfind /?で、わかります。

参考

  1. /vオプション

  2. /cオプション

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?