[Bangalore-pm] help in scripting

Gurunath Katagi gurunath.katagi at gmail.com
Fri Apr 15 22:33:59 PDT 2011


hi .. i am new to perl ..
i have a input file something pasted as below ..

16 50
16 30
16 23
17 88
17 99
18 89
18 1
..
--

and i want the output something like this :
16 50 30 23
17 88 99
18 99 1

i.e for each values in the first column, i want the elements in the second
column to be a one row ..

can be anybody give me psuedocode , to how to go about this ..
thank you

gurunath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/bangalore-pm/attachments/20110416/83e60b7a/attachment.html>


More information about the Bangalore-pm mailing list