want awk programmers help...
I hv a data file like this...
id1 id2 number amount
abc 111 35 25.00
abc 111 24 55.00
abc 222 35 65.00
abc 222 58 68.00
def 333 69 58.00
def 333 68 98.00
def 444 88 58.00
def 555 68 68.00
i want the output like this...
name : abc name2 : 111
---------------------------
35 25.00
24 55.00
---------------------------
name2 : 222
---------------------------
35 65.00
58 68.00
---------------------------
name : def name2 : 333
---------------------------
69 58.00
68 98.00
---------------------------
name2 : 444
---------------------------
88 58.00
---------------------------
name2 : 555
---------------------------
68 68.00
---------------------------
i could use while loop for upto id1 but unable to create an inner loop to break id2
Kindly help me...
|