This could be done with awk, but you don't need that much power for this. A simple editor (e.g., ed, ex, sed, or vi is all you need for this. Here is an example using sed:
After massaging your sample input and output to get rid of spaces in the middle of your lines (since you didn't use CODE tags), I also found that this code does not produce the sample output you said you want; you're missing a ,00 close to the end of each line and a ,00, in the middle of the line.
This User Gave Thanks to Don Cragun For This Post:
:D could any one answer my previous question...
just looked through logg and found no such question that I had asked.. please any input would help \..
:confused: (2 Replies)