>perl -ne "BEGIN{open F,'>0.txt'}print F $_;unless($.%5){close F;open +F,'>'.($./5).'.txt';}" file.txt
In reply to Re: Splitting up lines in a few files
by holli
in thread Splitting up lines in a few files
by echow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |