The accepted awk answer works on AIX ksh. But I use it with very big (120G) files and it takes 30 minutes to split the file.