Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

combine and output arrays?

$
0
0

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.


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images