Add initial support for 'split' command
Open files once before iteration starts
Add --output to split command