split large text file without missing data record

Posted by Santosh on Super User See other posts from Super User or by Santosh
Published on 2011-12-23T10:13:07Z Indexed on 2012/10/18 11:04 UTC
Read the original article Hit count: 234

Filed under:
|

I have a 140 MB text file, which contains detail information of books in library. For each book details there is a standard format data details in text file. I need to parse it and insert the data in Database. Here, parsing text file is not an issue. I am facing problem in parsing this large file. So i decided to split the file in small file around 2 MB each file. But i can't manually split this large file in so many pieces. I got HJsplit tool, which split the file but this also doesn't helped as this split the file but 1 book details half part is in one file and rest part is in second file. so if i split this way then information will be missed.

How to split the large so that i cant miss the information ? Is there any tool which help me in this condition.

© Super User or respective owner

Related posts about file

Related posts about split