I have a 457 MB file and trying to split it down into much smaller file. Here's what's currently working:
csplit -z Scan.nessus /\<ReportHost/ '{*}'
However, this creates about 61.5k for me as I have a ton of of these entries in this 457MB file. Ultimately, I'd like to perhaps break this down by every 50 entries rather than every single entry.
Is there a way to modify this to accomplish that? I tried doing this in Ruby to some extent, but it seems to max out the VM's memory trying to parse through the file with Nokogiri.