MeasureRows
0.9.1
Apteco PS Modules - PowerShell file rows count
Just use
Measure-Rows -Path "C:\Temp\Example.csv"
or
"C:\Temp\Example.csv" | Measure-Rows -SkipFirstRow
or
Measure-Rows -Path "C:\Temp\Example.csv" -Encoding UTF8
or even
"C:\Users\Florian\Downloads\adressen.csv", "C:\Users\Florian\Downloads\italian.csv" | Measure-Rows -SkipFirstRow -Encoding ([Sys
Just use
Measure-Rows -Path "C:\Temp\Example.csv"
or
"C:\Temp\Example.csv" | Measure-Rows -SkipFirstRow
or
Measure-Rows -Path "C:\Temp\Example.csv" -Encoding UTF8
or even
"C:\Users\Florian\Downloads\adressen.csv", "C:\Users\Florian\Downloads\italian.csv" | Measure-Rows -SkipFirstRow -Encoding ([Sys
Apteco PS Modules - PowerShell file rows count
Just use
Measure-Rows -Path "C:\Temp\Example.csv"
or
"C:\Temp\Example.csv" | Measure-Rows -SkipFirstRow
or
Measure-Rows -Path "C:\Temp\Example.csv" -Encoding UTF8
or even
"C:\Users\Florian\Downloads\adressen.csv", "C:\Users\Florian\Downloads\italian.csv" | Measure-Rows -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
Just use
Measure-Rows -Path "C:\Temp\Example.csv"
or
"C:\Temp\Example.csv" | Measure-Rows -SkipFirstRow
or
Measure-Rows -Path "C:\Temp\Example.csv" -Encoding UTF8
or even
"C:\Users\Florian\Downloads\adressen.csv", "C:\Users\Florian\Downloads\italian.csv" | Measure-Rows -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
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2022 Apteco GmbH. All rights reserved.
Package Details
Author(s)
- florian.von.bracht@apteco.de
Tags
Functions
PSEditions
Dependencies
This module has no dependencies.
Release Notes
0.9.1 Fix for resolving absolute paths
0.9.0 Initial release of measure rows module through psgallery
FileList
- MeasureRows.nuspec
- MeasureRows.psd1
- MeasureRows.psm1
- Public\Measure-Rows.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
0.9.1 (current version) | 63 | 10/30/2023 |
0.9.0 | 53 | 10/28/2022 |