spliting a xml file based on no.of records in linux [message #580694] |
Tue, 26 March 2013 22:46 |
supriya_546
Messages: 56 Registered: October 2005 Location: hyderabad
|
Member |
|
|
Hi,
I have a file which has huge GB's of data. I need to split the file based on no.of records and load the same.input file is an XML file.
my file content is like
----------------
<rec> data1 fhdkjhgk kjfkdgkd kjdfgkdf
gfjfdh jgkhkjfdhg hfdkgdf kjhgkfdgk gkjfdkhkfd </rec>
<rec> gnkjfdgfd khj jghdjhg kgjhdkjfhg kjdfhgkjfd </rec>
<rec> ndgbjfd gjfdhjgd ghfdkj </rec>
---------------------
here if i want to split the file for 100000 rec's, then i need to find 100000 record in the file, cut the same data and move into another file.
I need help to write this code in linux.
Thanks for the help.
- Supriya
|
|
|
|
|