splitting output file into multiple files every 1500 lines