Sorry if this question has already been asked, but I can't for the life of me find a valid answer.
I have a bunch of .txt files each containing a column of content. I would like to merge them in one .csv where the columns will be next to each other.
So if the first input in1.txt is:
banana
pear
apple
orange
and the second one, in2.txt is
airplane
truck
car
bus
I would like the resulting csv, say out.csv, to be:
banana,airplane
pear,truck
apple,car
orange,bus
Is there a way to do that with Powershell?
Get-Content,New-Object, andExport-CSVcommands and writing some code. When you have specific code issues you can post back here and we will help you.