I have a text file like this:
25 raj
78 rohit
89 bhanu
58 mohit
29 mano
53 rohit
63 shiva
74 lapan
63 bhanu
what i need is a linux script to reorganize this file by adding
the relevant content(number) to the names and print only once.... please help me someone. script can contain any commands if it will be done with
two dimensional array and awk command it will be better... anyhow i
need the output..Thanks in advance to someone is going to help
me..........
my output file has to be like below:
25 raj
131 rohit
152 bhanu
58 mohit
29 mano
63 shiva
74 lapan
pls write shell script code ..........