MeasureRows

0.9.5

Apteco PS Modules - PowerShell file rows count

Just use

Measure-Row -Path "C:\Temp\Example.csv"

or

"C:\Temp\Example.csv" | Measure-Row -SkipFirstRow

or

Measure-Row -Path "C:\Temp\Example.csv" -Encoding UTF8

or even

"C:\Users\Florian\Downloads\adressen.csv", "C:\Users\Florian\Downloads\italian.csv" | Measure-Row -SkipFirstRow -Encoding ([System.
Apteco PS Modules - PowerShell file rows count

Just use

Measure-Row -Path "C:\Temp\Example.csv"

or

"C:\Temp\Example.csv" | Measure-Row -SkipFirstRow

or

Measure-Row -Path "C:\Temp\Example.csv" -Encoding UTF8

or even

"C:\Users\Florian\Downloads\adressen.csv", "C:\Users\Florian\Downloads\italian.csv" | Measure-Row -SkipFirstRow -Encoding ([System.Text.Encoding]::UTF8)

to count the rows in a csv file. It uses a .NET streamreader and is extremly fast.

The default encoding is UTF8, but it uses the ones available in [System.Text.Encoding]

If you want to skip the first line, just use this Switch -SkipFirstRow
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MeasureRows

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MeasureRows

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2025 Apteco GmbH. All rights reserved.

Package Details

Author(s)

  • florian.von.bracht@apteco.de

Tags

powershell Windows Linux Apteco

Functions

Measure-Row

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes


0.9.5 Fixing internal function import
0.9.4 Fixed tags in module manifest
0.9.3 Fixed documentation from Measure-Rows to Measure-Row
0.9.2 Updated tests and test files
     Renamed main function into Measure-Row and dded alias Measure-Rows
     Fixed output type to [long]
     Fixed pipeline input to count multiple files and return one total count
     Throwing exception if one of multiple files does not exist instead of Write-Error
     Invoke-ScriptAnalyzer does not return any problems anymore ;-)
0.9.1 Fix for resolving absolute paths
0.9.0 Initial release of measure rows module through psgallery

FileList

Version History

Version Downloads Last updated
0.9.5 (current version) 7 9/30/2025
0.9.4 6 9/24/2025
0.9.3 5 9/23/2025
0.9.2 4 9/23/2025
0.9.1 103 10/30/2023
0.9.0 55 10/28/2022
Show more