Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl format question

Status
Not open for further replies.

meetme

Programmer
Joined
Oct 15, 2001
Messages
8
Location
US
Hi,

I have a log file which has data as below extracted from a database.

DB1
=======
Param1
------
Value1

Param2
------
Value2

Param3
-------
Value3

DB2
=======
Param1
------
Value1

Param2
------
Value2

Param3
-------
Value3

What I need is to format the output as below

DB_Name:Param1:Param2:Param3
=============================
DB1:Value1:Value2:Value3
DB2:Value1:Value2:Value3

Thanks,
meetme
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top