3 ms·
This just looks painful. Not the problem, the 35 million line XML document. Which probably will not validate after eating that line. None the less. I'm sure
by VLM 13y ago
This just looks painful. Not the problem, the 35 million line XML document. Which probably will not validate after eating that line.
None the less. I'm sure the constants are a bit off here.
head -35185222 infile.xml > OhGodThisIsHorrific.xml
tail -n+35185224 infile.xml >> OhGodThisIsHorrific.xml
I'm guessing a 35 million line file, is like, what, enterprise Java version of hello world? (just kidding, sorta)
(Edited to fix the line spacing. Also the double greater than is not a typo)