Many thanks for your reply . I don't have access to unix box over the weekend , so haven't been able to check this on the actual output file . however i did run this on a small sample of data using a Emulator and the awk command is absolute spot on !! Thanks for suggesting this .
Would you by any chance be able to expain the option's used in the awk command ?
Hi RudiC - Thanks for your reply , would this solution be efficient enough to be run daily on files of around 20 MB size. I have an window of 5 mins to complete this formatting .
I'm afraid there's no generic answer to that question. It depends on hardware performance, system load, process priority, and mayhap other factors. You'll need to test under several different conditions to come to a satisfying conclusion.
From a gut feeling, I'd say, yes, 5 mins should suffice to get 20MB done.