Im using split to break up a text file into 20 equal chunks.
Code:
split -N 20 somefile.txt
Ok thats fine, but the problem is, split will at some point cut the ending line in half and dump its chopped contents to the next file, meaning, if the last line in a chunk is 'something' well, 'some' might end up being the last line of the new chunk, and 'thing' will be the first line of the next chunk created.
I want split to knock this BS off and stop corrupting my data, and/or somehow preserve each line in one piece.
Does anybody have any constructive ideas how to remedy this problem?