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

normal CSV file to a fixed record-size text file

$
0
0

Has anyone seen a utility written in PowerShell in a public repository that would take a CSV file and write out a fixed length record text file where each field of data in the CSV would occupy the same columns in each record of the text file?

I'm imagining a pre-pass to find the widths needed for each column and then a pass over the CSV file to write the fields right-justified in that width for each column.

For example,

image



Viewing all articles
Browse latest Browse all 21975

Trending Articles



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