I have a file which is an HTML document, containing a <table>
I want to extract data from and output into a csv.
This file has 544609657
characters, is about 545 megabytes, all in a single line.
I managed to extract the data into a csv by using sed
and making many string replacements, but I wanted to speed things up by using GNU parallel. Is this possible, considering it's a single line file?
My attempts below have not increased processing speed nor improved memory usage:
parallel -a table.html --pipepart 'sed -e [...etc.]' > table.csv
Or
cat table.html | parallel --pipe 'sed -e [...etc.]' > table.csv
I'm guessing the problem is because the file has a single line. If so, what strategies could I used to process the file more efficiently?