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