macOS / binaries /

csplit

/usr/bin/csplit
Split files based on context

The csplit utility splits file into pieces using the patterns args. If file is a dash, csplit reads from standard input.

source: man