I have two arrays, and would like to combine them and output them with column headers. Example as follows:
$Guys = @("Jim","Joe","John")
$Gals = @("Jane","Jill","Joceline")
$Guys + $Gals | ft -autosize
#outputs:
Jim
Joe
John
Jane
Jill
Joceline
I would like to join the arrays, give them column names and output them such that this results:
Guys Gals
------------------ --------------------
Jim Jane
Joe Jill
John Joceline
Help appreciated. Thanks in advance.