Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Param
- (
- $local_file_name
- )
- $file = Get-Content $local_file_name
- $total = $data.Length
- $header_item_count = $file[0].Split(",").Count
- $i = 1
- $data | ForEach-Object {
- $line_item_count = $_.Split(",").Count
- if ($line_item_count -ne $header_item_count)
- {
- "Line [$i/$total] - [$line_item_count] vs [$header_item_count]"
- }
- $i++
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement