Hi Guys,
Thanks for all your responses. It has been most helpful.
I tried all the 3 solutions.
Salem's code - I get all the values. Since, I wanted only the Last value of the Document number, I did not how to change the awk command.
olded - The code worked perfectly.
PHV - I tried this...