I’m working with the royal mail PAF database in csv format (approx 29 million lines), and need to split the data into files of approx 1000 lines.
I found this solution to write the files, but do not know how to a. open the file, and b. tell the script to delete the lines from the original file after copying them.
Can anyone advise?