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

Creating a table

$
0
0

I have a text file whose content is like the following sample:

12:01            Temperature             10

12:01            Weight                     1500

12:01            Color                        Red

12:02            Temperature              12

12:02            Weight                      1450

12:02            Color                        Pink

and so on.

How can I convert it to a table like the following one:

Time           Temperature   Weight      Color

12:01                10              1500        Red

12:02                12              1450        Pink

I suspect there is some magic trick, but I can't find it.

Can anybody please help?

Regards

Marius

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles