note
elef
Depending on your input data, this should be pretty easy to do with a regex.<br>
For instance, if your input file looks exactly like your snippet above, you could probably get away with just putting these two lines in a while loop:<br> <c>s/ wap/, /g;
s/, / wap/; # change back the first occurrence on each line</c>
887856
887856