Hi Corona688,
Posting standard comments without knowledge of the context, and without looking in the problem may be your job. When I said, "not desired output" I specified the desired output in my first post.
Thanks Ravinder,
Your solution is really helpful, except two cases.
Input:
000.5000a,0000.0000,a2.500200,0.5000,abc,2.00,2500,2.400,285.850,285a.850,205.1080800,mno000,a0b0,2.860,abc
Output from your awk:
.5000a,a2.500200,.5,abc,2,2500,2.4,285.85,285a.850,205.10808,mno000,a0b0,2.86,abc
Desired output:
000.5000a,a2.500200,.5,abc,2,2500,2.4,285.85,285a.850,205.10808,mno000,a0b0,2.86,abc
Note that, solution should only remove zeros from number, not the string values. Also when the value is like 0*.0* (i.e. 000.00000, 00.00, 0000.00, it should be represented as just 0, while it's blank currently)
Thanks for your help.