Rows to columns

Hi,

I have a text file with records as below

Service Contract: [497 - Service Contract 1]
Account Type: [170 - Paymnt Acct Retail ]
Client Number: [64064166]
Group Number: [00000099]
Account Currency: [826 - GBP]

I want to print 2nd,3rd and 5th as a separate column, like ->

Account Type: [170 - Paymnt Acct Retail ],Client Number: [64064166],Account Currency: [826 - GBP]

How can I do that?

Check the links at the bottom left corner of this page: "More UNIX and Linux Forum Topics You Might Find Helpful" will help you...