I\'ve got a large (by number of lines) plain text file that I\'d like to split into smaller files, also by number of lines. So if my file has around 2M lines, I\'d like to
you can also use awk
awk -vc=1 'NR%200000==0{++c}{print $0 > c".txt"}' largefile