Split the STDIN to sub-files by limiting lines or sub-file count.