in reply to Splitting up lines in a few files
>perl -ne "BEGIN{open F,'>0.txt'}print F $_;unless($.%5){close F;open +F,'>'.($./5).'.txt';}" file.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting up lines in a few files
by jmcnamara (Monsignor) on Nov 09, 2005 at 10:12 UTC |