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 TouchToneTommy 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
Oct 15, 2001
8
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