shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transformar linhas em coluna


From: Verilton Lopes
Subject: Transformar linhas em coluna
Date: Wed, 17 Feb 2016 08:12:08 -0300

Caros, bom dia.

Preciso da ajuda de vocês.

Tenho o seguinte arquivo texto:
==================================================
Product Name      : Internet Explorer
Product ID        : 00333-OEM-9999999-11111
Product Key       : XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Installation Folder :
Service Pack      :
Computer Name     : LAB-WKS
Modified Time     : 28/01/2014 16:44:23
==================================================

==================================================
Product Name      : Windows 7 Professional
Product ID        : 00333-OEM-9999999-00000
Product Key       : XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Installation Folder : C:\Windows
Service Pack      :
Computer Name     : LAB-WKS
Modified Time     : 20/02/2015 17:30:01
==================================================

Consigo filtrar o que desejo (Nome do PC, softwares e chaves) usando o awk, veja abaixo:

Product Name : Internet Explorer
Product ID : 00333-OEM-9999999-11111
Product Key : XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Computer Name : LAB-WKS
Product Name : Windows 8.1 Pro
Product ID : 00333-OEM-9999999-00000
Product Key : XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Computer Name : LAB-WKS

Contudo, não consigo colocar estes dados em linha.
Ex.:
<Computer Name> <Product Name> <Product Key> <Product Name> <Product Key> <Product ID>

LAB-WKS Internet Explorer XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Windows 7 Professional XXXXX-XXXXX-XXXXX-XXXXX-XXXXX 00333-OEM-9999999-00000


Alguém pode ajudar?

--
Verilton Lopes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]