I was looking for a port of csplit for OS X. csplit is an Unix command to split files in smaller parts on different criteria. One of them being splitting on a line that matches a regular expression.
Unfortunately, there was nothing in Fink, so I made a little
perl script to do what I want.
This little script will split the standard input on each line matching the regular expression given as parameter.
regexp: a perl regular expression
[prefix]: by default, slice of the file are named (...)