For example,
I have CSV file and imported to powershell
$fullname = Import-Csv “fullname.csv”
$fullname
Output is
FullName
------------------
John Smith
Kevin Johnson
I have another CSV file and imported to
$Email = Import-Csv “Email.csv”
$Email
the output is
Email
-------
[email protected]
[email protected]
I would like to concatenate this 2 variables and export to as one csv file, so I tried like this
$fullname = Import-Csv “fullname.csv”
$fullname
$Email = Import-Csv “Email.csv”
$Email
($fullname+$Email)|Export-Csv C:\fullnameandEmail.csv -NoTypeInformation
i also try like this
-join($fullname,$Email)|Export-Csv C:\fullnameandEmail.csv -NoTypeInformation
but it was not working,
I would like to make csv like below, how can I concatenate these 2 valuables?
FullName Email
--------- ----------
John Smith [email protected]
Kevin Johnson [email protected]
Thank you so much