I have got multiple measurement files with one column of numeric data each. (Update: The script should work for variable numbers of measurement files.)
data1.dat
1.0
2.0
3.0
data2.dat
10.0
20.0
30.0
...
dataN.dat
1
1
1
How can I merge these data files into a comma separated values file using Powershell?
"data1","data2.dat",...,"dataN.dat"
1.0,10.0,...,1
2.0,20.0,...,1
3.0,30.0,...,1
Related
- Merging Two Text Files into One CSV File does not help my case, but might help other people who search for column merging.
- Powershell / Perl : Merging multiple CSV files into one? is similar but there the lines have an id.