Combining multiple lines into one line
Posted
by mkal
on Stack Overflow
See other posts from Stack Overflow
or by mkal
Published on 2010-03-18T04:36:39Z
Indexed on
2010/03/18
4:41 UTC
Read the original article
Hit count: 440
I have this use case of an xml file with input like
Input:
<abc a="1">
<val>0.25</val>
</abc>
<abc a="2">
<val>0.25</val>
</abc>
<abc a="3">
<val>0.35</val>
</abc>
...
Output:
<abc a="1"><val>0.25</val></abc>
<abc a="2"><val>0.25</val></abc>
<abc a="3"><val>0.35</val></abc>
I have around 200K lines in a file in the Input format, how can I quickly convert this into output format.
© Stack Overflow or respective owner