PowerShell - List File Line Count For Files in a Directory that Match a Given Pattern

I had a need to get the total count of all lines, for a given set of .csv files. For example, there are 5 files each with 1000 lines, I wanted a script that would output: 1000, 1000, 1000, 1000, 1000.

I could not find a script or command to do this, so I wrote one in PowerShell. Enjoy


List File Line Count For Files in a Directory that Match a Given Pattern

https://gist.github.com/aaronhoffman/416b88e64b970c4c9cb4


hope this helps,
Aaron

Comments

Popular posts from this blog

Configure SonarAnalyzer.CSharp with .editorconfig, no need for SonarCloud or SonarQube

Search iPhone Text Messages with SQLite SQL Query

Pixel Grid Images 8x8 pixel grid on 256 pixel image