Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Removing empty rows from csv

$
0
0

Hi,

I have a csv, where I need to remove two blank rows which show up after the column name, dotted line and the string " rows affected"

COL A COL B
                           --> remove

                            --> remove

------- ----------      --> remove
(36644 rows affected)   --> remove
3400 1
1600 2
1600 3
1600 4

How can i format this in powershell?

Thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>