csplit

File Read

csplit /path/to/input-file 1
cat xx01

File Write

Writes the data to `xx0output-file` in the current working directory. If needed, a different prefix can be specified with `-f` (instead of `xx`).

echo DATA >/path/to/temp-file
csplit -z -b '%doutput-file' /path/to/temp-file 1