grep -v ^$ inputfile | split -d -l 300000 - outputfile