I have a .txt file ~6,000 lines long and wanted to split it into separate files. Each section begins with ‘jxzq’. After endless Man reading and web searching I managed csplit -f ‘kupu-’ FILENAME /jxzq/ ‘{540}' in Terminal. That sort of worked, but only 100 files at a time.

A portion of my long text file.