LoginSignup
0
0

More than 3 years have passed since last update.

カレント配下のcsvファイルの行数を取得する

Last updated at Posted at 2020-04-09

カレント配下のcsvファイルの行数を取得する

カレント配下のcsvファイルの行数を取得するスクリプト(なんか遅いので改善確認中)

 CountLine.ps1
# カレント配下のcsvファイルの行数を取得(先頭行がヘッダとして -1 している)
(Get-ChildItem -Recurse -File -Include *.csv).FullName |  
ForEach-object -Process { echo ([System.IO.Path]::GetFileName($_) + ":" + ( (Get-Content -Path $_).Length - 1 ))}
0
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
0
0