Unix/Linux Go Back    

Need Help in arranging the output

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member bartus11 Regarding:
Need Help in arranging the output.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 10-23-2012   -   Original Discussion by Sudeep Bhattad
bartus11's Unix or Linux Image
bartus11 bartus11 is offline
Registered User
Join Date: Apr 2009
Last Activity: 3 August 2016, 11:03 AM EDT
Posts: 3,733
Thanks: 7
Thanked 1,153 Times in 1,123 Posts

awk -vRS= '{a[$1]=a[$1](a[$1]?",":"")$2}END{for (i in a) print i","a[i]}' file

The Following User Says Thank You to bartus11 For This Useful Post:
Sudeep Bhattad (10-25-2012)