perl -pe 'open STDOUT, ">out".++$n if /^From /' before-first-output