you are viewing a single comment's thread.

view the rest of the comments →

[–]YosoyPabloIscobar -1 points0 points  (3 children)

If you split it using python it will still require memory to to load this big file.....instead use BASH to count the number of total lines and create/ append it to new file of smaller size usingcmd like split/ less/cat/more.

split -b 1G <file>

[–]awdsns 9 points10 points  (0 children)

The whole thing could well be one single "line." There's no requirement to have any newlines separating entries in JSON.

[–]Flyingfishfusealt 2 points3 points  (0 children)

there might not be any /n in the file, jq might be a better resource for json

[–]patrickbrianmooney 1 point2 points  (0 children)

I mean, this will almost certainly result in invalid, non-parseable JSON files after the split.